home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / SourceCode / Tutorial / Book / Ch08.Drawing.wn / WNDocument.wn < prev    next >
Unknown  |  1992-12-19  |  23.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Wanton Packer Module (music/wantonPacker) ext Supported
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 01 | 04 00 5c 06 04 00 5d 04 |........|..\...].|
|00000010| 04 00 08 31 04 00 08 33 | 04 00 02 0c 00 1e 21 a8 |...1...3|......!.|
|00000020| 00 1e 21 c8 00 1e 20 68 | 00 05 48 40 00 05 46 9c |..!... h|..H@..F.|
|00000030| 00 00 00 00 00 00 00 00 | 00 04 00 00 00 00 00 00 |........|........|
|00000040| 09 00 00 00 00 00 00 ff | ff 00 00 00 01 00 cb 10 |........|........|
|00000050| 00 00 cd 64 02 68 00 00 | 34 f0 00 2b 1a 91 00 6d |...d.h..|4..+...m|
|00000060| 1b 82 01 9a 00 39 00 00 | 00 00 ff 00 00 00 00 00 |.....9..|........|
|00000070| 00 00 00 00 00 00 01 01 | 02 64 00 00 00 48 00 48 |........|.d...H.H|
|00000080| 00 01 00 18 03 18 02 64 | 00 00 00 00 02 da 02 2f |.......d|......./|
|00000090| 00 64 00 04 19 00 04 00 | 58 90 00 0a cb 61 00 5a |.d......|X....a.Z|
|000000a0| 00 2a 04 00 58 90 00 0a | cb 61 00 5a 00 2a fc 71 |.*..X...|.a.Z.*.q|
|000000b0| 00 00 0a 96 00 00 00 00 | ff 00 00 00 00 00 00 00 |........|........|
|000000c0| 5d 1e 00 00 5d 1e 00 00 | 5d 1e 00 00 6f 0e 00 00 |]...]...|]...o...|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 04 00 57 0e | 04 00 58 0c 04 00 08 31 |......W.|..X....1|
|00000110| 04 00 08 33 04 00 02 0c | 00 1e 2b 08 00 1e 2b 20 |...3....|..+...+ |
|00000120| 00 1e 2b 24 00 1e 2b 3c | 00 05 48 a4 00 00 00 00 |..+$..+<|..H.....|
|00000130| 00 00 00 00 00 07 00 00 | 00 00 00 00 09 00 00 00 |........|........|
|00000140| 00 00 00 ff 00 00 00 00 | 01 00 cb 10 00 00 cd 63 |........|.......c|
|00000150| 02 68 00 00 34 f0 00 2b | 1a 91 00 6d 1b 82 01 9a |.h..4..+|...m....|
|00000160| 00 39 00 00 29 8a ff 00 | 00 00 00 00 00 00 00 00 |.9..)...|........|
|00000170| 00 00 01 01 02 64 00 00 | 00 48 00 48 00 01 00 18 |.....d..|.H.H....|
|00000180| 03 18 02 64 00 00 00 00 | 02 da 02 2f 00 64 00 04 |...d....|.../.d..|
|00000190| 19 00 04 00 52 76 00 0a | cb 61 00 5a 00 2a 04 00 |....Rv..|.a.Z.*..|
|000001a0| 52 76 00 0a cb 61 00 5a | 00 2a fc 71 00 00 05 ab |Rv...a.Z|.*.q....|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 58 26 00 00 |........|....X&..|
|000001c0| 58 26 00 00 58 26 00 00 | 6f 0e 00 00 00 00 00 00 |X&..X&..|o.......|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 04 0d 0d 0d 0d 00 04 | 0d 0d 0d 0d 00 78 00 03 |........|.....x..|
|00000210| 00 00 00 48 00 48 00 00 | 00 00 02 da 02 2f 00 00 |...H.H..|...../..|
|00000220| 00 00 03 18 02 64 01 5b | 05 28 03 fc 00 02 00 00 |.....d.[|.(......|
|00000230| 00 48 00 48 00 00 00 00 | 03 18 02 64 00 01 00 00 |.H.H....|...d....|
|00000240| 00 64 00 00 00 01 00 01 | 01 01 00 00 00 01 27 0f |.d......|......'.|
|00000250| 00 01 00 01 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 02 00 19 01 90 00 00 | 00 00 00 40 00 00 00 00 |........|...@....|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 21 | 0d 50 61 67 65 20 32 2d |.......!|.Page 2-|
|00000290| fd 00 f7 20 20 20 20 20 | 20 20 fd 01 f7 20 20 20 |... | ... |
|000002a0| 20 20 20 20 fd 02 f7 0d | 0d 00 5a 0d ff 00 15 0a | ....|..Z.....|
|000002b0| 00 f7 4f 62 6a 65 63 74 | 20 42 61 73 65 64 20 43 |..Object| Based C|
|000002c0| 6f 6d 70 75 74 69 6e 67 | 3a 20 41 20 4e 65 78 74 |omputing|: A Next|
|000002d0| 53 74 65 70 20 54 75 74 | 6f 72 69 61 6c 20 61 6e |Step Tut|orial an|
|000002e0| 64 20 43 6f 6f 6b 62 6f | 6f 6b 20 2d 20 44 47 4d |d Cookbo|ok - DGM|
|000002f0| 0d 43 68 61 70 74 65 72 | 20 38 3a 20 44 72 61 77 |.Chapter| 8: Draw|
|00000300| 69 6e 67 0d 0d 00 03 0d | 0d 0d 00 1f fb 00 00 00 |ing.....|........|
|00000310| 01 00 8a 01 9c 57 4e 47 | 72 61 70 68 69 63 2e 31 |.....WNG|raphic.1|
|00000320| 30 31 30 35 37 2e 65 70 | 73 f7 0d 00 25 fb 00 00 |01057.ep|s...%...|
|00000330| 00 01 00 f0 09 01 5d 38 | 2d 33 5f 43 75 73 74 6f |......]8|-3_Custo|
|00000340| 6d 56 69 65 77 2e 35 38 | 36 34 39 37 2e 65 70 73 |mView.58|6497.eps|
|00000350| f7 0d 00 20 fb 00 00 00 | 01 00 ae 01 58 38 2d 34 |... ....|....X8-4|
|00000360| 5f 4d 79 56 69 65 77 2e | 38 32 34 31 33 39 2e 65 |_MyView.|824139.e|
|00000370| 70 73 f7 0d 00 2e fb 00 | 00 00 01 00 f0 05 00 9f |ps......|........|
|00000380| 38 2d 35 43 75 73 74 6f | 6d 65 56 69 65 77 49 6e |8-5Custo|meViewIn|
|00000390| 73 70 65 63 74 6f 72 2e | 30 34 39 36 32 37 2e 65 |spector.|049627.e|
|000003a0| 70 73 f7 0d 02 17 0d fc | 00 7e 01 e6 00 7e 02 0e |ps......|.~...~..|
|000003b0| 02 b0 06 30 f7 ff 00 15 | 0a 01 f7 46 69 67 75 72 |...0....|...Figur|
|000003c0| 65 20 38 2d 34 3a 20 43 | 6c 61 73 73 20 45 64 69 |e 8-4: C|lass Edi|
|000003d0| 74 6f 72 20 61 66 74 65 | 72 20 43 75 73 74 6f 6d |tor afte|r Custom|
|000003e0| 20 56 69 65 77 20 43 72 | 65 61 74 69 6f 6e ff 00 | View Cr|eation..|
|000003f0| 15 0a 00 f7 0d fc 00 7e | 01 e6 00 7e 00 0e 02 b0 |.......~|...~....|
|00000400| 06 30 f7 0d 34 29 20 4d | 61 6b 65 20 74 68 65 20 |.0..4) M|ake the |
|00000410| 43 75 73 74 6f 6d 56 69 | 65 77 20 6f 62 6a 65 63 |CustomVi|ew objec|
|00000420| 74 20 69 6e 20 74 68 65 | 20 6d 61 69 6e 20 77 69 |t in the| main wi|
|00000430| 6e 64 6f 77 20 61 6e 20 | 69 6e 73 74 61 6e 63 65 |ndow an |instance|
|00000440| 20 6f 66 20 74 68 65 20 | 4d 79 56 69 65 77 2e 20 | of the |MyView. |
|00000450| 20 57 65 20 64 6f 20 74 | 68 69 73 20 62 79 20 66 | We do t|his by f|
|00000460| 69 72 73 74 20 73 65 6c | 65 63 74 69 6e 67 20 74 |irst sel|ecting t|
|00000470| 68 65 20 56 69 65 77 20 | 28 74 68 65 20 6b 6e 6f |he View |(the kno|
|00000480| 62 73 20 6d 75 73 74 20 | 62 65 20 68 69 67 68 6c |bs must |be highl|
|00000490| 69 67 68 74 65 64 29 20 | 61 6e 64 20 74 68 65 6e |ighted) |and then|
|000004a0| 20 66 72 6f 6d 20 74 68 | 65 20 6d 61 69 6e 20 6d | from th|e main m|
|000004b0| 65 6e 75 20 73 65 6c 65 | 63 74 20 22 57 49 6e 64 |enu sele|ct "WInd|
|000004c0| 6f 77 73 22 20 61 6e 64 | 20 22 49 6e 73 70 65 63 |ows" and| "Inspec|
|000004d0| 74 6f 72 22 2e 20 20 54 | 68 65 20 70 6f 70 2d 75 |tor". T|he pop-u|
|000004e0| 70 20 6c 69 73 74 20 6f | 66 20 74 68 65 20 69 6e |p list o|f the in|
|000004f0| 73 70 65 63 74 6f 72 20 | 73 68 6f 75 6c 64 20 62 |spector |should b|
|00000500| 65 20 73 65 74 20 74 6f | 20 41 74 74 72 69 62 75 |e set to| Attribu|
|00000510| 74 65 73 20 61 6e 64 20 | 79 6f 75 20 73 68 6f 75 |tes and |you shou|
|00000520| 6c 64 20 74 68 65 6e 20 | 73 65 6c 65 63 74 20 4d |ld then |select M|
|00000530| 79 56 69 65 77 20 61 6e | 64 20 22 4f 4b 22 2e 20 |yView an|d "OK". |
|00000540| 20 54 6f 20 63 68 65 63 | 6b 20 69 66 20 74 68 69 | To chec|k if thi|
|00000550| 73 20 77 6f 72 6b 65 64 | 2c 20 69 6e 20 74 68 65 |s worked|, in the|
|00000560| 20 6d 61 69 6e 20 77 69 | 6e 64 6f 77 20 74 68 65 | main wi|ndow the|
|00000570| 20 74 65 78 74 20 69 6e | 20 74 68 65 20 63 75 73 | text in| the cus|
|00000580| 74 6f 6d 20 56 69 65 77 | 20 6e 6f 77 20 73 68 6f |tom View| now sho|
|00000590| 75 6c 64 20 62 65 20 63 | 68 61 6e 67 65 64 20 74 |uld be c|hanged t|
|000005a0| 6f 20 62 65 20 4d 79 56 | 69 65 77 2e 0d 0d fc 00 |o be MyV|iew.....|
|000005b0| 7e 01 e6 00 7e 02 0e 02 | b0 06 30 f7 0d 00 02 0d |~...~...|..0.....|
|000005c0| 0d 00 29 fb 00 00 00 01 | 00 b0 01 61 38 2d 36 5f |..).....|...a8-6_|
|000005d0| 43 75 73 74 6f 6d 56 69 | 65 77 46 69 6c 65 73 2e |CustomVi|ewFiles.|
|000005e0| 34 35 38 39 39 32 2e 65 | 70 73 f7 0d 02 29 ff 00 |458992.e|ps...)..|
|000005f0| 15 0a 01 f7 0d fc 00 7e | 01 e6 00 7e 02 0e 02 b0 |.......~|...~....|
|00000600| 06 30 f7 46 69 67 75 72 | 65 20 38 2d 35 3a 20 46 |.0.Figur|e 8-5: F|
|00000610| 69 6c 65 20 54 79 70 65 | 73 20 63 72 65 61 74 65 |ile Type|s create|
|00000620| 64 20 62 79 20 49 6e 74 | 65 72 66 61 63 65 20 42 |d by Int|erface B|
|00000630| 75 69 6c 64 65 72 ff 00 | 15 0a 00 f7 0d fc 00 7e |uilder..|.......~|
|00000640| 01 e6 00 7e 00 0e 02 b0 | 06 30 f7 0d 38 29 20 41 |...~....|.0..8) A|
|00000650| 64 64 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |dd the f|ollowing|
|00000660| 20 6c 69 6e 65 73 20 74 | 6f 20 66 69 6c 65 20 4d | lines t|o file M|
|00000670| 79 56 69 65 77 2e 6d 0d | ff 00 15 0a 00 f7 ff 00 |yView.m.|........|
|00000680| 15 0c 00 f7 0d ff 00 16 | 0a 00 f7 2d 20 64 72 61 |........|...- dra|
|00000690| 77 53 65 6c 66 3a 28 4e | 58 52 65 63 74 2a 29 72 |wSelf:(N|XRect*)r|
|000006a0| 20 3a 28 69 6e 74 29 63 | 0d 7b 0d 20 20 20 20 4e | :(int)c|.{. N|
|000006b0| 58 45 72 61 73 65 52 65 | 63 74 28 26 62 6f 75 6e |XEraseRe|ct(&boun|
|000006c0| 64 73 29 3b 0d 20 20 20 | 20 50 53 73 65 74 67 72 |ds);. | PSsetgr|
|000006d0| 61 79 28 4e 58 5f 42 4c | 41 43 4b 29 3b 0d 20 20 |ay(NX_BL|ACK);. |
|000006e0| 20 20 50 53 73 65 74 6c | 69 6e 65 77 69 64 74 68 | PSsetl|inewidth|
|000006f0| 28 35 2e 30 29 3b 0d 20 | 20 20 20 50 53 6e 65 77 |(5.0);. | PSnew|
|00000700| 70 61 74 68 28 29 3b 0d | 20 20 20 20 50 53 6d 6f |path();.| PSmo|
|00000710| 76 65 74 6f 28 35 30 2e | 30 2c 20 35 30 2e 30 29 |veto(50.|0, 50.0)|
|00000720| 3b 0d 20 20 20 20 50 53 | 6c 69 6e 65 74 6f 28 34 |;. PS|lineto(4|
|00000730| 30 30 2e 30 2c 20 32 35 | 30 2e 30 29 3b 0d 20 20 |00.0, 25|0.0);. |
|00000740| 20 20 50 53 73 74 72 6f | 6b 65 28 29 3b 0d 20 20 | PSstro|ke();. |
|00000750| 20 20 72 65 74 75 72 6e | 20 73 65 6c 66 3b 0d 7d | return| self;.}|
|00000760| 0d ff 00 15 0c 00 f7 0d | ff 00 15 0a 00 f7 49 66 |........|......If|
|00000770| 20 77 65 20 6e 6f 77 20 | 72 61 6e 20 22 6d 61 6b | we now |ran "mak|
|00000780| 65 22 20 77 65 20 77 6f | 75 6c 64 20 67 65 74 20 |e" we wo|uld get |
|00000790| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 65 72 |the foll|owing er|
|000007a0| 72 6f 72 73 3a ff 00 15 | 0c 00 f7 0d 0d ff 00 16 |rors:...|........|
|000007b0| 08 00 f7 4d 79 56 69 65 | 77 2e 6d 3a 20 49 6e 20 |...MyVie|w.m: In |
|000007c0| 6d 65 74 68 6f 64 20 60 | 64 72 61 77 53 65 6c 66 |method `|drawSelf|
|000007d0| 3a 3a 27 0d 4d 79 56 69 | 65 77 2e 6d 3a 31 31 3a |::'.MyVi|ew.m:11:|
|000007e0| 20 77 61 72 6e 69 6e 67 | 3a 20 69 6d 70 6c 69 63 | warning|: implic|
|000007f0| 69 74 20 64 65 63 6c 61 | 72 61 74 69 6f 6e 20 6f |it decla|ration o|
|00000800| 66 20 66 75 6e 63 74 69 | 6f 6e 20 60 50 53 73 65 |f functi|on `PSse|
|00000810| 74 67 72 61 79 27 0d 00 | 18 04 00 02 00 00 38 04 |tgray'..|......8.|
|00000820| 00 02 06 00 38 24 00 02 | a9 00 38 04 00 02 86 00 |....8$..|..8.....|
|00000830| 2a 00 00 00 06 00 08 00 | 00 00 01 02 71 0d 4e 65 |*.......|....q.Ne|
|00000840| 58 54 73 74 65 70 20 66 | 65 61 74 75 72 65 73 20 |XTstep f|eatures |
|00000850| 61 6e 20 69 6e 74 65 67 | 72 61 74 65 64 20 64 72 |an integ|rated dr|
|00000860| 61 77 69 6e 67 20 65 6e | 76 69 72 6f 6e 6d 65 6e |awing en|vironmen|
|00000870| 74 2e 20 20 54 68 61 74 | 20 6d 65 61 6e 73 20 6f |t. That| means o|
|00000880| 62 6a 65 63 74 73 20 6f | 6e 6c 79 20 6e 65 65 64 |bjects o|nly need|
|00000890| 20 74 6f 20 73 70 65 63 | 69 66 79 20 69 6e 20 6f | to spec|ify in o|
|000008a0| 6e 65 20 70 6c 61 63 65 | 20 61 6e 64 20 69 6e 20 |ne place| and in |
|000008b0| 6f 6e 65 20 6c 61 6e 67 | 75 61 67 65 20 74 68 65 |one lang|uage the|
|000008c0| 20 77 61 79 20 74 68 65 | 79 20 77 61 6e 74 20 74 | way the|y want t|
|000008d0| 6f 20 62 65 20 76 69 65 | 77 65 64 2e 20 20 54 68 |o be vie|wed. Th|
|000008e0| 65 20 6c 61 6e 67 75 61 | 67 65 20 77 65 20 73 70 |e langua|ge we sp|
|000008f0| 65 63 69 66 79 20 69 73 | 20 74 68 65 20 50 6f 73 |ecify is| the Pos|
|00000900| 74 53 63 72 69 70 74 20 | 6c 61 6e 67 75 61 67 65 |tScript |language|
|00000910| 2e 20 20 57 68 65 6e 20 | 77 65 20 64 72 61 77 20 |. When |we draw |
|00000920| 74 6f 20 61 20 72 65 67 | 69 6f 6e 20 6f 66 20 74 |to a reg|ion of t|
|00000930| 68 65 20 73 63 72 65 65 | 6e 2c 20 77 65 20 73 65 |he scree|n, we se|
|00000940| 6e 64 20 74 68 65 20 73 | 61 6d 65 20 63 6f 6d 6d |nd the s|ame comm|
|00000950| 61 6e 64 73 20 74 68 61 | 74 20 77 65 20 77 6f 75 |ands tha|t we wou|
|00000960| 6c 64 20 73 65 6e 64 20 | 74 6f 20 61 20 50 6f 73 |ld send |to a Pos|
|00000970| 74 53 63 72 69 70 74 20 | 70 72 69 6e 74 65 72 2e |tScript |printer.|
|00000980| 20 20 45 61 63 68 20 72 | 65 67 69 6f 6e 20 69 73 | Each r|egion is|
|00000990| 20 63 61 6c 6c 65 64 20 | 61 20 56 69 65 77 2c 20 | called |a View, |
|000009a0| 61 6e 64 20 69 74 20 68 | 61 73 20 74 68 65 20 73 |and it h|as the s|
|000009b0| 61 6d 65 20 73 74 61 74 | 65 73 20 61 73 20 61 20 |ame stat|es as a |
|000009c0| 50 6f 73 74 53 63 72 69 | 70 74 20 70 72 69 6e 74 |PostScri|pt print|
|000009d0| 65 72 2e 20 20 49 74 20 | 68 61 73 20 61 20 63 61 |er. It |has a ca|
|000009e0| 72 74 65 73 69 61 6e 20 | 63 6f 6f 72 64 69 6e 61 |rtesian |coordina|
|000009f0| 74 65 20 73 79 73 74 65 | 6d 73 20 77 69 74 68 20 |te syste|ms with |
|00000a00| 74 68 65 20 28 30 2c 30 | 29 20 69 6e 20 74 68 65 |the (0,0|) in the|
|00000a10| 20 6c 6f 77 65 72 20 6c | 65 66 74 20 68 61 6e 64 | lower l|eft hand|
|00000a20| 20 63 6f 72 6e 65 72 20 | 61 6e 64 20 74 68 65 20 | corner |and the |
|00000a30| 70 6f 69 6e 74 20 28 33 | 30 30 2c 20 32 30 30 29 |point (3|00, 200)|
|00000a40| 20 62 65 69 6e 67 20 74 | 68 72 65 65 20 68 75 6e | being t|hree hun|
|00000a50| 64 72 65 64 20 75 6e 69 | 74 73 20 6f 76 65 72 20 |dred uni|ts over |
|00000a60| 61 6e 64 20 74 77 6f 20 | 68 75 6e 64 72 65 64 20 |and two |hundred |
|00000a70| 75 6e 69 74 73 20 75 70 | 2e 20 20 28 69 6e 20 50 |units up|. (in P|
|00000a80| 6f 73 74 53 63 72 69 70 | 74 2c 20 74 68 65 20 64 |ostScrip|t, the d|
|00000a90| 65 66 61 75 6c 74 20 69 | 73 20 37 32 20 75 6e 69 |efault i|s 72 uni|
|00000aa0| 74 73 20 70 65 72 20 69 | 6e 63 68 29 2e 0d 02 c9 |ts per i|nch)....|
|00000ab0| 0d fc 00 7e 01 e6 00 7e | 00 0e 02 b0 06 30 f7 0d |...~...~|.....0..|
|00000ac0| fc 00 7e 01 e6 00 7e 02 | 0e 02 b0 06 30 f7 ff 00 |..~...~.|....0...|
|00000ad0| 15 0a 01 f7 46 69 67 75 | 72 65 20 38 2d 33 3a 20 |....Figu|re 8-3: |
|00000ae0| 4d 61 69 6e 20 49 6e 74 | 65 72 66 61 63 65 20 42 |Main Int|erface B|
|00000af0| 75 69 6c 64 65 72 20 57 | 69 6e 64 6f 77 20 66 6f |uilder W|indow fo|
|00000b00| 72 20 43 75 73 74 6f 6d | 20 56 69 65 77 20 45 78 |r Custom| View Ex|
|00000b10| 61 6d 70 6c 65 ff 00 15 | 0a 00 f7 0d fc 00 7e 01 |ample...|......~.|
|00000b20| e6 00 7e 00 0e 02 b0 06 | 30 f7 0d 33 29 20 43 72 |..~.....|0..3) Cr|
|00000b30| 65 61 74 65 20 61 20 53 | 75 62 2d 63 6c 61 73 73 |eate a S|ub-class|
|00000b40| 20 6f 66 20 74 68 65 20 | 56 69 65 77 20 6f 62 6a | of the |View obj|
|00000b50| 65 63 74 2e 20 20 44 6f | 20 74 68 69 73 20 62 79 |ect. Do| this by|
|00000b60| 20 64 6f 75 62 6c 65 20 | 63 6c 69 63 6b 69 6e 67 | double |clicking|
|00000b70| 20 20 74 68 65 20 43 6c | 61 73 73 65 73 20 54 6f | the Cl|asses To|
|00000b80| 6f 6c 6b 69 74 20 69 6e | 20 74 68 65 20 6c 6f 77 |olkit in| the low|
|00000b90| 65 72 20 6c 65 66 74 20 | 63 6f 72 6e 65 72 20 6f |er left |corner o|
|00000ba0| 66 20 74 68 65 20 73 63 | 72 65 65 6e 20 28 74 68 |f the sc|reen (th|
|00000bb0| 65 20 69 63 6f 6e 20 77 | 69 74 68 20 74 68 65 20 |e icon w|ith the |
|00000bc0| 22 2e 68 22 20 6f 6e 20 | 69 74 29 2e 20 20 57 69 |".h" on |it). Wi|
|00000bd0| 74 68 69 6e 20 74 68 65 | 20 43 6c 61 73 73 20 45 |thin the| Class E|
|00000be0| 64 69 74 6f 72 2c 20 73 | 65 6c 65 63 74 20 74 68 |ditor, s|elect th|
|00000bf0| 65 20 56 69 65 77 20 63 | 6c 61 73 73 20 73 6f 20 |e View c|lass so |
|00000c00| 74 68 61 74 20 74 68 65 | 20 77 6f 72 64 20 56 69 |that the| word Vi|
|00000c10| 65 77 20 69 73 20 73 68 | 6f 77 69 6e 67 20 75 6e |ew is sh|owing un|
|00000c20| 64 65 72 20 74 68 65 20 | 69 63 6f 6e 20 6f 6e 20 |der the |icon on |
|00000c30| 74 68 65 20 72 69 67 68 | 74 20 65 64 67 65 20 6f |the righ|t edge o|
|00000c40| 66 20 74 68 65 20 77 69 | 6e 64 6f 77 2e 20 20 53 |f the wi|ndow. S|
|00000c50| 65 6c 65 63 74 20 74 68 | 65 20 70 6f 70 2d 75 70 |elect th|e pop-up|
|00000c60| 20 6c 69 73 74 20 61 6e | 64 20 73 65 6c 65 63 74 | list an|d select|
|00000c70| 20 74 68 65 20 22 73 75 | 62 2d 63 6c 61 73 73 22 | the "su|b-class"|
|00000c80| 20 66 75 6e 63 74 69 6f | 6e 2e 20 20 44 6f 75 62 | functio|n. Doub|
|00000c90| 6c 65 20 63 6c 69 63 6b | 20 74 68 65 20 74 65 78 |le click| the tex|
|00000ca0| 74 20 62 6f 78 20 75 6e | 64 65 72 20 74 68 65 20 |t box un|der the |
|00000cb0| 69 63 6f 6e 20 61 6e 64 | 20 63 68 61 6e 67 65 20 |icon and| change |
|00000cc0| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 53 75 62 43 |the name| of SubC|
|00000cd0| 6c 61 73 73 31 20 74 6f | 20 62 65 20 ff 00 16 0a |lass1 to| be ....|
|00000ce0| 01 f7 4d 79 56 69 65 77 | ff 00 15 0a 00 f7 2e 20 |..MyView|....... |
|00000cf0| 20 52 65 6d 65 6d 62 65 | 72 20 74 68 61 74 20 61 | Remembe|r that a|
|00000d00| 20 6e 65 77 20 63 6c 61 | 73 73 20 73 68 6f 75 6c | new cla|ss shoul|
|00000d10| 64 20 61 6c 77 61 79 73 | 20 73 74 61 72 74 20 77 |d always| start w|
|00000d20| 69 74 68 20 61 6e 20 75 | 70 70 65 72 63 61 73 65 |ith an u|ppercase|
|00000d30| 20 6c 65 74 74 65 72 2e | 20 20 54 68 65 20 43 6c | letter.| The Cl|
|00000d40| 61 73 73 20 45 64 69 74 | 6f 72 20 77 69 6e 64 6f |ass Edit|or windo|
|00000d50| 77 20 73 68 6f 75 6c 64 | 20 6e 6f 77 20 6c 6f 6f |w should| now loo|
|00000d60| 6b 20 6c 69 6b 65 20 74 | 68 65 20 66 69 67 75 72 |k like t|he figur|
|00000d70| 65 20 38 2d 34 2e 0d 0d | 0d 03 52 fc 00 7e 01 e6 |e 8-4...|..R..~..|
|00000d80| 00 7e 00 0e 02 b0 06 30 | f7 0d fc 00 7e 01 e6 00 |.~.....0|....~...|
|00000d90| 7e 02 0e 02 b0 06 30 f7 | ff 00 15 0a 01 f7 46 69 |~.....0.|......Fi|
|00000da0| 67 75 72 65 20 38 2d 35 | 3a 20 49 6e 73 70 65 63 |gure 8-5|: Inspec|
|00000db0| 74 6f 72 20 66 6f 72 20 | 43 75 73 74 6f 6d 20 56 |tor for |Custom V|
|00000dc0| 69 65 77 ff 00 15 0a 00 | f7 0d fc 00 7e 01 e6 00 |iew.....|....~...|
|00000dd0| 7e 00 0e 02 b0 06 30 f7 | 0d 35 29 20 53 61 76 65 |~.....0.|.5) Save|
|00000de0| 20 74 68 65 20 22 2e 6e | 69 62 22 20 66 69 6c 65 | the ".n|ib" file|
|00000df0| 2e 20 20 46 72 6f 6d 20 | 74 68 65 20 6d 61 69 6e |. From |the main|
|00000e00| 20 6d 65 6e 75 2c 20 73 | 65 6c 65 63 74 20 22 46 | menu, s|elect "F|
|00000e10| 69 6c 65 22 20 61 6e 64 | 20 22 53 61 76 65 22 2e |ile" and| "Save".|
|00000e20| 20 20 49 66 20 79 6f 75 | 20 61 72 65 20 6c 6f 67 | If you| are log|
|00000e30| 67 65 64 20 69 6e 20 61 | 73 20 22 6d 65 22 20 79 |ged in a|s "me" y|
|00000e40| 6f 75 20 6d 69 67 68 74 | 20 77 61 6e 74 20 74 6f |ou might| want to|
|00000e50| 20 73 61 76 65 20 74 68 | 65 20 66 69 6c 65 20 69 | save th|e file i|
|00000e60| 6e 20 61 20 66 69 6c 65 | 20 73 75 63 68 20 61 73 |n a file| such as|
|00000e70| 3a 0d 0d ff 00 16 0a 00 | f7 2f 6d 65 2f 50 72 6f |:.......|./me/Pro|
|00000e80| 67 72 61 6d 6d 69 6e 67 | 2f 43 75 73 74 6f 6d 56 |gramming|/CustomV|
|00000e90| 69 65 77 2f 76 69 65 77 | 2e 6e 69 62 ff 00 15 0a |iew/view|.nib....|
|00000ea0| 00 f7 2e 0d 0d 36 29 20 | 43 72 65 61 74 65 20 61 |.....6) |Create a|
|00000eb0| 20 50 72 6f 6a 65 63 74 | 20 66 69 6c 65 2e 20 20 | Project| file. |
|00000ec0| 46 72 6f 6d 20 74 68 65 | 20 6d 61 69 6e 20 6d 65 |From the| main me|
|00000ed0| 6e 75 2c 20 73 65 6c 65 | 63 74 20 22 46 69 6c 65 |nu, sele|ct "File|
|00000ee0| 22 20 61 6e 64 20 22 50 | 72 6f 6a 65 63 74 22 2e |" and "P|roject".|
|00000ef0| 20 20 54 68 65 20 69 6e | 73 70 65 63 74 6f 72 20 | The in|spector |
|00000f00| 77 69 6c 6c 20 74 68 65 | 6e 20 61 73 6b 20 79 6f |will the|n ask yo|
|00000f10| 75 20 69 66 20 79 6f 75 | 20 77 61 6e 74 20 74 6f |u if you| want to|
|00000f20| 20 63 72 65 61 74 65 20 | 61 20 6e 65 77 20 70 72 | create |a new pr|
|00000f30| 6f 6a 65 63 74 73 20 66 | 69 6c 65 2e 20 20 53 65 |ojects f|ile. Se|
|00000f40| 6c 65 63 74 20 22 4f 4b | 22 2e 0d 0d 37 29 20 46 |lect "OK|"...7) F|
|00000f50| 72 6f 6d 20 74 68 65 20 | 63 6c 61 73 73 20 65 64 |rom the |class ed|
|00000f60| 69 74 6f 72 20 67 6f 20 | 74 6f 20 74 68 65 20 22 |itor go |to the "|
|00000f70| 4f 70 65 72 61 74 69 6f | 6e 73 22 20 70 6f 70 2d |Operatio|ns" pop-|
|00000f80| 75 70 20 6d 65 6e 75 20 | 61 6e 64 20 73 65 6c 65 |up menu |and sele|
|00000f90| 63 74 20 74 68 65 20 22 | 55 6e 70 61 72 73 65 22 |ct the "|Unparse"|
|00000fa0| 20 20 77 68 69 6c 65 20 | 4d 79 56 69 65 77 20 69 | while |MyView i|
|00000fb0| 73 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 63 6c |s the cu|rrent cl|
|00000fc0| 61 73 73 2e 20 20 53 65 | 6c 65 63 74 20 22 4f 4b |ass. Se|lect "OK|
|00000fd0| 22 20 74 6f 20 70 61 6e | 65 6c 20 74 68 61 74 20 |" to pan|el that |
|00000fe0| 61 73 6b 73 20 79 6f 75 | 20 74 6f 20 69 66 20 79 |asks you| to if y|
|00000ff0| 6f 75 20 77 61 6e 74 20 | 74 6f 20 63 72 65 61 74 |ou want |to creat|
|00001000| 65 20 74 68 65 20 4d 79 | 56 69 65 77 2e 5b 68 6d |e the My|View.[hm|
|00001010| 5d 20 66 69 6c 65 73 20 | 61 6e 64 20 22 59 65 73 |] files |and "Yes|
|00001020| 22 20 74 6f 20 74 68 65 | 20 70 61 6e 65 6c 20 74 |" to the| panel t|
|00001030| 68 61 74 20 61 73 6b 73 | 20 69 66 20 79 6f 75 20 |hat asks| if you |
|00001040| 77 61 6e 74 20 74 6f 20 | 61 64 64 20 74 68 65 20 |want to |add the |
|00001050| 66 69 6c 65 73 20 74 6f | 20 74 68 65 20 70 72 6f |files to| the pro|
|00001060| 6a 65 63 74 20 6d 61 6e | 61 67 65 72 2e 20 20 59 |ject man|ager. Y|
|00001070| 6f 75 20 63 61 6e 20 6e | 6f 77 20 73 65 65 20 74 |ou can n|ow see t|
|00001080| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 66 69 6c |he follo|wing fil|
|00001090| 65 20 74 79 70 65 73 20 | 68 61 76 65 20 62 65 65 |e types |have bee|
|000010a0| 6e 20 63 72 65 61 74 65 | 64 20 69 6e 20 74 68 65 |n create|d in the|
|000010b0| 20 66 6f 6c 64 65 72 20 | 66 6f 72 20 79 6f 75 20 | folder |for you |
|000010c0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 3a 0d 04 17 fc |applicat|ion:....|
|000010d0| 00 5a 02 0a 00 5a 00 0e | 01 b0 06 30 f7 0d fc 00 |.Z...Z..|...0....|
|000010e0| 6c 02 0a 00 6c 00 0e 01 | f0 08 06 30 f7 50 65 6f |l...l...|...0.Peo|
|000010f0| 70 6c 65 20 77 68 6f 20 | 73 74 75 64 79 20 6c 65 |ple who |study le|
|00001100| 61 72 6e 69 6e 67 20 74 | 68 65 6f 72 79 20 28 68 |arning t|heory (h|
|00001110| 6f 77 20 77 65 20 6c 65 | 61 72 6e 2c 20 68 6f 77 |ow we le|arn, how|
|00001120| 20 77 65 20 69 6e 74 65 | 67 72 61 74 65 20 6e 65 | we inte|grate ne|
|00001130| 77 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 2c 20 68 |w inform|ation, h|
|00001140| 6f 77 20 77 65 20 67 65 | 74 20 66 65 65 64 62 61 |ow we ge|t feedba|
|00001150| 63 6b 20 66 72 6f 6d 20 | 6f 75 74 20 6d 69 73 74 |ck from |out mist|
|00001160| 61 6b 65 73 20 65 74 63 | 2e 29 20 74 68 69 6e 6b |akes etc|.) think|
|00001170| 20 76 65 72 79 20 68 69 | 67 68 6c 79 20 6f 66 20 | very hi|ghly of |
|00001180| 75 73 69 6e 67 20 67 72 | 61 70 68 69 63 73 20 74 |using gr|aphics t|
|00001190| 6f 20 74 65 61 63 68 20 | 70 72 6f 67 72 61 6d 6d |o teach |programm|
|000011a0| 69 6e 67 20 63 6f 6e 63 | 65 70 74 73 2e 20 20 53 |ing conc|epts. S|
|000011b0| 65 79 6d 6f 75 72 20 50 | 61 70 65 72 74 20 6f 66 |eymour P|apert of|
|000011c0| 20 4d 49 54 20 62 61 73 | 65 64 20 61 20 67 72 65 | MIT bas|ed a gre|
|000011d0| 61 74 20 64 65 61 6c 20 | 6f 66 20 68 69 73 20 77 |at deal |of his w|
|000011e0| 6f 72 6b 20 61 72 6f 75 | 6e 64 20 74 65 61 63 68 |ork arou|nd teach|
|000011f0| 69 6e 67 20 63 6f 6d 70 | 75 74 65 72 20 63 6f 6e |ing comp|uter con|
|00001200| 63 65 70 74 73 20 61 72 | 6f 75 6e 64 20 74 68 65 |cepts ar|ound the|
|00001210| 20 4c 4f 47 4f 20 6c 61 | 6e 67 75 61 67 65 2e 20 | LOGO la|nguage. |
|00001220| 20 4d 61 6e 79 20 70 65 | 6f 70 6c 65 20 61 72 65 | Many pe|ople are|
|00001230| 20 69 6e 74 72 6f 64 75 | 63 65 64 20 74 6f 20 4c | introdu|ced to L|
|00001240| 4f 47 4f 20 74 68 72 6f | 75 67 68 20 69 74 73 20 |OGO thro|ugh its |
|00001250| 22 74 75 72 74 6c 65 20 | 67 72 61 70 68 69 63 73 |"turtle |graphics|
|00001260| 22 20 69 6e 74 65 72 66 | 61 63 65 2e 20 20 55 73 |" interf|ace. Us|
|00001270| 65 72 73 20 73 65 6e 64 | 20 63 6f 6d 6d 61 6e 64 |ers send| command|
|00001280| 73 20 73 75 63 68 20 61 | 73 20 22 70 65 6e 20 64 |s such a|s "pen d|
|00001290| 6f 77 6e 2c 20 70 65 6e | 20 75 70 2c 20 74 75 72 |own, pen| up, tur|
|000012a0| 6e 20 6c 65 66 74 2c 20 | 74 75 72 6e 20 72 69 67 |n left, |turn rig|
|000012b0| 68 74 2c 20 66 6f 72 77 | 61 72 64 20 61 6e 64 20 |ht, forw|ard and |
|000012c0| 72 65 76 65 72 73 65 22 | 2e 20 20 41 66 74 65 72 |reverse"|. After|
|000012d0| 20 74 68 65 79 20 65 6e | 74 65 72 20 61 20 73 65 | they en|ter a se|
|000012e0| 74 20 6f 66 20 63 6f 6d | 6d 61 6e 64 73 20 74 68 |t of com|mands th|
|000012f0| 65 79 20 73 65 65 20 69 | 6d 6d 65 64 69 61 74 65 |ey see i|mmediate|
|00001300| 20 66 65 65 64 62 61 63 | 6b 2e 20 20 49 66 20 74 | feedbac|k. If t|
|00001310| 68 65 79 20 68 61 76 65 | 20 61 6e 20 65 72 72 6f |hey have| an erro|
|00001320| 72 20 74 68 65 79 20 6d | 69 67 68 74 20 73 65 65 |r they m|ight see|
|00001330| 20 61 20 73 63 72 69 62 | 62 6c 65 20 69 6e 73 74 | a scrib|ble inst|
|00001340| 65 61 64 20 6f 66 20 61 | 20 70 69 63 74 75 72 65 |ead of a| picture|
|00001350| 2e 20 20 54 68 69 73 20 | 66 65 65 64 62 61 63 6b |. This |feedback|
|00001360| 20 68 61 73 20 70 72 6f | 6d 70 74 65 64 20 6f 74 | has pro|mpted ot|
|00001370| 68 65 72 20 61 75 74 68 | 6f 72 73 20 6f 66 20 63 |her auth|ors of c|
|00001380| 6f 6d 70 75 74 65 72 20 | 74 65 78 74 73 20 74 6f |omputer |texts to|
|00001390| 20 63 72 65 61 74 65 20 | 65 6e 74 69 72 65 20 70 | create |entire p|
|000013a0| 72 6f 67 72 61 6d 6d 69 | 6e 67 20 62 6f 6f 6b 73 |rogrammi|ng books|
|000013b0| 20 74 65 61 63 68 69 6e | 67 20 66 75 6e 64 61 6d | teachin|g fundam|
|000013c0| 65 6e 74 61 6c 20 63 6f | 6d 70 75 74 65 72 20 63 |ental co|mputer c|
|000013d0| 6f 6e 63 65 70 74 73 20 | 73 75 63 68 20 61 73 20 |oncepts |such as |
|000013e0| 6c 6f 6f 70 69 6e 67 2c | 20 63 6f 6e 64 69 74 69 |looping,| conditi|
|000013f0| 6f 6e 61 6c 20 73 74 61 | 74 65 6d 65 6e 74 73 2c |onal sta|tements,|
|00001400| 20 61 6e 64 20 72 65 63 | 75 72 73 69 6f 6e 20 75 | and rec|ursion u|
|00001410| 73 69 6e 67 20 67 72 61 | 70 68 69 63 73 2e 20 20 |sing gra|phics. |
|00001420| 41 66 74 65 72 20 74 68 | 65 20 6d 61 74 65 72 69 |After th|e materi|
|00001430| 61 6c 20 69 6e 20 74 68 | 69 73 20 63 68 61 70 74 |al in th|is chapt|
|00001440| 65 72 2c 20 70 72 6f 67 | 72 61 6d 6d 65 72 73 20 |er, prog|rammers |
|00001450| 77 69 6c 6c 20 62 65 20 | 61 62 6c 65 20 74 6f 20 |will be |able to |
|00001460| 75 73 65 20 67 72 61 70 | 68 69 63 61 6c 20 66 65 |use grap|hical fe|
|00001470| 65 64 62 61 63 6b 20 74 | 6f 20 6c 65 61 72 6e 20 |edback t|o learn |
|00001480| 4e 65 58 54 73 74 65 70 | 2e 20 52 65 61 64 65 72 |NeXTstep|. Reader|
|00001490| 73 20 77 69 6c 6c 20 61 | 6c 73 6f 20 62 65 20 61 |s will a|lso be a|
|000014a0| 62 6c 65 20 74 6f 20 71 | 75 69 63 6b 6c 79 20 63 |ble to q|uickly c|
|000014b0| 72 65 61 74 65 20 62 65 | 61 75 74 69 66 75 6c 20 |reate be|autiful |
|000014c0| 67 72 61 70 68 69 63 20 | 69 6d 61 67 65 73 20 77 |graphic |images w|
|000014d0| 69 74 68 20 76 65 72 79 | 20 6c 69 74 74 6c 65 20 |ith very| little |
|000014e0| 77 6f 72 6b 2e 0d 03 88 | fc 00 5a 02 0a 00 5a 00 |work....|..Z...Z.|
|000014f0| 0e 01 b0 06 30 f7 0d fc | 00 48 02 0a 00 48 00 0e |....0...|.H...H..|
|00001500| 01 b0 06 30 f7 ff 00 15 | 10 01 f7 55 6e 69 66 69 |...0....|...Unifi|
|00001510| 65 64 20 49 6d 61 67 69 | 6e 67 20 4d 6f 64 65 6c |ed Imagi|ng Model|
|00001520| 73 ff 00 15 0a 00 f7 0d | fc 00 5a 02 0a 00 5a 00 |s.......|..Z...Z.|
|00001530| 0e 01 b0 06 30 f7 0d fc | 00 6c 02 0a 00 6c 00 0e |....0...|.l...l..|
|00001540| 01 f0 08 06 30 f7 57 69 | 74 68 20 6d 6f 73 74 20 |....0.Wi|th most |
|00001550| 6f 74 68 65 72 20 63 6f | 6d 70 75 74 65 72 20 73 |other co|mputer s|
|00001560| 79 73 74 65 6d 73 2c 20 | 74 68 65 72 65 20 69 73 |ystems, |there is|
|00001570| 20 73 6f 6d 65 20 6c 61 | 6e 67 75 61 67 65 20 66 | some la|nguage f|
|00001580| 6f 72 20 64 72 61 77 69 | 6e 67 20 67 72 61 70 68 |or drawi|ng graph|
|00001590| 69 63 73 20 74 6f 20 74 | 68 65 20 73 63 72 65 65 |ics to t|he scree|
|000015a0| 6e 2e 20 20 57 69 74 68 | 20 74 68 65 20 4d 61 63 |n. With| the Mac|
|000015b0| 69 6e 74 6f 73 68 20 69 | 74 20 69 73 20 63 61 6c |intosh i|t is cal|
|000015c0| 6c 65 64 20 51 75 69 63 | 6b 44 72 61 77 2c 20 77 |led Quic|kDraw, w|
|000015d0| 69 74 68 20 58 2d 77 69 | 6e 64 6f 77 73 20 73 79 |ith X-wi|ndows sy|
|000015e0| 73 74 65 6d 73 20 69 74 | 20 69 73 20 74 68 65 20 |stems it| is the |
|000015f0| 58 2d 6c 69 62 72 61 72 | 79 20 61 6e 64 20 77 69 |X-librar|y and wi|
|00001600| 64 67 65 74 73 2e 20 20 | 4d 69 63 72 6f 73 6f 66 |dgets. |Microsof|
|00001610| 74 20 57 69 6e 64 6f 77 | 73 20 61 6e 64 20 6f 74 |t Window|s and ot|
|00001620| 68 65 72 20 67 72 61 70 | 68 69 63 73 2d 62 61 73 |her grap|hics-bas|
|00001630| 65 64 20 73 79 73 74 65 | 6d 73 20 61 6c 73 6f 20 |ed syste|ms also |
|00001640| 68 61 76 65 20 6f 74 68 | 65 72 20 6c 61 6e 67 75 |have oth|er langu|
|00001650| 61 67 65 73 20 66 6f 72 | 20 64 72 61 77 69 6e 67 |ages for| drawing|
|00001660| 20 74 6f 20 74 68 65 20 | 73 63 72 65 65 6e 2e 20 | to the |screen. |
|00001670| 20 53 6f 20 69 66 20 49 | 20 77 61 6e 74 20 74 6f | So if I| want to|
|00001680| 20 64 72 61 77 20 61 6e | 79 20 6f 62 6a 65 63 74 | draw an|y object|
|00001690| 20 6f 6e 20 74 68 65 20 | 63 6f 6d 70 75 74 65 72 | on the |computer|
|000016a0| 20 73 63 72 65 65 6e 2c | 20 49 20 77 72 69 74 65 | screen,| I write|
|000016b0| 20 61 20 72 6f 75 74 69 | 6e 65 20 74 68 61 74 20 | a routi|ne that |
|000016c0| 73 65 6e 64 73 20 64 72 | 61 77 69 6e 67 20 63 6f |sends dr|awing co|
|000016d0| 6d 6d 61 6e 64 73 20 66 | 72 6f 6d 20 6d 79 20 6f |mmands f|rom my o|
|000016e0| 62 6a 65 63 74 73 20 74 | 6f 20 74 68 65 20 63 6f |bjects t|o the co|
|000016f0| 6d 70 75 74 65 72 20 73 | 63 72 65 65 6e 20 75 73 |mputer s|creen us|
|00001700| 69 6e 67 20 69 6e 20 63 | 6f 6d 70 75 74 65 72 27 |ing in c|omputer'|
|00001710| 73 20 73 63 72 65 65 6e | 20 64 72 61 77 69 6e 67 |s screen| drawing|
|00001720| 20 6c 61 6e 67 75 61 67 | 65 2e 20 20 4d 6f 73 74 | languag|e. Most|
|00001730| 20 61 64 76 61 6e 63 65 | 64 20 73 79 73 74 65 6d | advance|d system|
|00001740| 73 20 63 61 6c 6c 20 74 | 68 69 73 20 74 68 65 20 |s call t|his the |
|00001750| 64 69 73 70 6c 61 79 20 | 73 65 72 76 65 72 2e 20 |display |server. |
|00001760| 20 49 66 20 49 20 6c 61 | 74 65 72 20 77 61 6e 74 | If I la|ter want|
|00001770| 20 74 6f 20 62 65 20 61 | 62 6c 65 20 74 6f 20 70 | to be a|ble to p|
|00001780| 72 69 6e 74 20 74 68 61 | 74 20 73 61 6d 65 20 6f |rint tha|t same o|
|00001790| 62 6a 65 63 74 20 72 65 | 70 72 65 73 65 6e 74 61 |bject re|presenta|
|000017a0| 74 69 6f 6e 20 6f 75 74 | 20 74 6f 20 61 20 6c 61 |tion out| to a la|
|000017b0| 73 65 72 20 70 72 69 6e | 74 65 72 20 49 20 68 61 |ser prin|ter I ha|
|000017c0| 76 65 20 74 6f 20 72 65 | 2d 77 72 69 74 65 20 61 |ve to re|-write a|
|000017d0| 6c 6c 20 74 68 65 20 64 | 72 61 77 69 6e 67 20 70 |ll the d|rawing p|
|000017e0| 72 6f 67 72 61 6d 73 20 | 75 73 69 6e 67 20 50 6f |rograms |using Po|
|000017f0| 73 74 53 63 72 69 70 74 | 2e 20 20 54 68 69 73 20 |stScript|. This |
|00001800| 69 73 20 61 20 74 61 73 | 6b 20 74 68 61 74 20 63 |is a tas|k that c|
|00001810| 61 6e 20 70 72 65 73 65 | 6e 74 20 72 65 6d 61 72 |an prese|nt remar|
|00001820| 6b 61 62 6c 65 20 63 68 | 61 6c 6c 65 6e 67 65 73 |kable ch|allenges|
|00001830| 20 73 69 6e 63 65 20 73 | 65 6c 64 6f 6d 20 64 6f | since s|eldom do|
|00001840| 20 74 68 65 20 74 77 6f | 20 6c 61 6e 67 75 61 67 | the two| languag|
|00001850| 65 73 20 6d 61 74 63 68 | 20 69 73 20 74 68 65 69 |es match| is thei|
|00001860| 72 20 63 61 70 61 62 69 | 6c 69 74 69 65 73 2e 0d |r capabi|lities..|
|00001870| 00 2e fc 00 5b 02 0a 00 | 5b 00 0e 01 f0 08 06 30 |....[...|[......0|
|00001880| f7 fb 00 00 00 01 00 8a | 01 ef 57 4e 47 72 61 70 |........|..WNGrap|
|00001890| 68 69 63 2e 30 35 30 30 | 32 39 2e 65 70 73 f7 0d |hic.0500|29.eps..|
|000018a0| 00 20 fc 00 6c 02 0a 00 | 6c 00 0e 01 f0 08 06 30 |. ..l...|l......0|
|000018b0| f7 0d fc 00 6c 02 0a 00 | 6c 02 0e 01 f0 08 06 30 |....l...|l......0|
|000018c0| f7 0d 06 c2 0d 0d ff 00 | 15 0a 01 f7 fc 00 5a 02 |........|......Z.|
|000018d0| 0a 00 5a 02 0e 01 b0 06 | 30 f7 46 69 67 75 72 65 |..Z.....|0.Figure|
|000018e0| 20 38 2d 31 3a 20 4d 75 | 6c 74 69 70 6c 65 20 76 | 8-1: Mu|ltiple v|
|000018f0| 73 2e 20 49 6e 74 65 67 | 72 61 74 65 64 20 69 6d |s. Integ|rated im|
|00001900| 61 67 69 6e 67 20 73 79 | 73 74 65 6d 73 ff 00 15 |aging sy|stems...|
|00001910| 0a 00 f7 0d fc 00 5a 02 | 0a 00 5a 00 0e 01 b0 06 |......Z.|..Z.....|
|00001920| 30 f7 0d fc 00 47 02 0a | 00 47 00 0e 01 b0 06 30 |0....G..|.G.....0|
|00001930| f7 ff 00 15 10 01 f7 4c | 61 6e 67 75 61 67 65 20 |.......L|anguage |
|00001940| 54 72 61 6e 73 6c 61 74 | 69 6f 6e 73 3a 20 4e 6f |Translat|ions: No|
|00001950| 74 20 75 73 75 61 6c 6c | 79 20 61 6e 20 65 78 61 |t usuall|y an exa|
|00001960| 63 74 20 73 63 69 65 6e | 63 65 0d ff 00 15 0a 00 |ct scien|ce......|
|00001970| f7 fc 00 5a 02 0a 00 5a | 00 0e 01 b0 06 30 f7 0d |...Z...Z|.....0..|
|00001980| fc 00 6c 02 0a 00 6c 00 | 0e 01 f0 08 06 30 f7 57 |..l...l.|.....0.W|
|00001990| 68 65 6e 20 70 72 6f 67 | 72 61 6d 6d 65 72 73 20 |hen prog|rammers |
|000019a0| 6d 75 73 74 20 63 72 65 | 61 74 65 20 6d 75 6c 74 |must cre|ate mult|
|000019b0| 69 70 6c 65 20 73 74 72 | 65 61 6d 73 20 6f 66 20 |iple str|eams of |
|000019c0| 64 72 61 77 69 6e 67 20 | 63 6f 6d 6d 61 6e 64 73 |drawing |commands|
|000019d0| 20 74 77 6f 20 73 65 70 | 61 72 61 74 65 20 70 72 | two sep|arate pr|
|000019e0| 6f 62 6c 65 6d 73 20 6f | 63 63 75 72 2e 20 20 53 |oblems o|ccur. S|
|000019f0| 6f 6d 65 20 6c 61 6e 67 | 75 61 67 65 73 20 68 61 |ome lang|uages ha|
|00001a00| 76 65 20 63 6f 6d 6d 61 | 6e 64 73 20 74 68 61 74 |ve comma|nds that|
|00001a10| 20 61 72 65 20 6e 6f 74 | 20 73 75 70 70 6f 72 74 | are not| support|
|00001a20| 65 64 20 69 6e 20 6f 74 | 68 65 72 20 6c 61 6e 67 |ed in ot|her lang|
|00001a30| 75 61 67 65 73 20 61 6e | 64 20 73 6f 6d 65 20 6f |uages an|d some o|
|00001a40| 66 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 73 20 74 |f the co|mmands t|
|00001a50| 68 61 74 20 70 65 72 66 | 6f 72 6d 20 73 69 6d 69 |hat perf|orm simi|
|00001a60| 6c 61 72 20 66 75 6e 63 | 74 69 6f 6e 73 20 62 65 |lar func|tions be|
|00001a70| 68 61 76 65 20 73 6c 69 | 67 68 74 6c 79 20 64 69 |have sli|ghtly di|
|00001a80| 66 66 65 72 65 6e 74 6c | 79 2e 20 20 46 6f 72 20 |fferentl|y. For |
|00001a90| 63 6f 6d 6d 61 6e 64 73 | 20 74 68 61 74 20 65 78 |commands| that ex|
|00001aa0| 69 73 74 20 69 6e 20 6f | 6e 65 20 6c 61 6e 67 75 |ist in o|ne langu|
|00001ab0| 61 67 65 20 74 68 61 74 | 20 64 6f 6e 27 74 20 65 |age that| don't e|
|00001ac0| 78 69 73 74 20 69 6e 20 | 74 68 65 20 6f 74 68 65 |xist in |the othe|
|00001ad0| 72 2c 20 74 68 65 20 70 | 72 6f 67 72 61 6d 6d 65 |r, the p|rogramme|
|00001ae0| 72 20 69 73 20 74 6f 20 | 75 73 65 20 74 68 65 20 |r is to |use the |
|00001af0| 6c 6f 77 65 73 74 20 63 | 6f 6d 6d 6f 6e 20 73 65 |lowest c|ommon se|
|00001b00| 74 20 6f 66 20 63 6f 6d | 6d 61 6e 64 73 2e 20 20 |t of com|mands. |
|00001b10| 46 6f 72 20 65 78 61 6d | 70 6c 65 20 69 74 20 79 |For exam|ple it y|
|00001b20| 6f 75 20 63 61 6e 20 6e | 6f 74 20 73 63 61 6c 65 |ou can n|ot scale|
|00001b30| 20 61 6e 64 20 72 6f 74 | 61 74 65 20 64 72 61 77 | and rot|ate draw|
|00001b40| 69 6e 67 73 20 69 6e 20 | 6f 6e 65 20 6f 66 20 74 |ings in |one of t|
|00001b50| 68 65 20 64 69 73 70 6c | 61 79 20 6c 61 6e 67 75 |he displ|ay langu|
|00001b60| 61 67 65 73 2c 20 79 6f | 75 20 63 61 6e 27 74 20 |ages, yo|u can't |
|00001b70| 75 73 65 20 74 68 65 20 | 73 63 61 6c 65 20 61 6e |use the |scale an|
|00001b80| 64 20 72 6f 74 61 74 65 | 20 66 75 6e 63 74 69 6f |d rotate| functio|
|00001b90| 6e 73 20 69 6e 20 74 68 | 65 20 6f 74 68 65 72 20 |ns in th|e other |
|00001ba0| 6c 61 6e 67 75 61 67 65 | 20 75 6e 6c 65 73 73 20 |language| unless |
|00001bb0| 79 6f 75 20 63 72 65 61 | 74 65 20 61 6e 20 65 71 |you crea|te an eq|
|00001bc0| 75 69 76 61 6c 65 6e 74 | 20 63 6f 6d 6d 61 6e 64 |uivalent| command|
|00001bd0| 20 6f 66 20 79 6f 75 72 | 20 6f 77 6e 2e 20 20 4f | of your| own. O|
|00001be0| 66 74 65 6e 20 74 68 65 | 20 70 72 6f 67 72 61 6d |ften the| program|
|00001bf0| 6d 65 72 20 6d 75 73 74 | 20 74 6f 20 72 65 2d 69 |mer must| to re-i|
|00001c00| 6e 76 65 6e 74 20 63 6f | 6d 6d 61 6e 64 73 20 74 |nvent co|mmands t|
|00001c10| 6f 20 22 73 63 61 6c 65 | 22 20 61 6e 64 20 22 72 |o "scale|" and "r|
|00001c20| 6f 74 61 74 65 22 20 61 | 20 63 6f 6f 72 64 69 6e |otate" a| coordin|
|00001c30| 61 74 65 20 73 79 73 74 | 65 6d 20 66 6f 72 20 6f |ate syst|em for o|
|00001c40| 6e 65 20 6c 61 6e 67 75 | 61 67 65 2c 20 6f 72 20 |ne langu|age, or |
|00001c50| 77 6f 72 73 65 20 6a 75 | 73 74 20 6e 6f 74 20 75 |worse ju|st not u|
|00001c60| 73 65 20 74 68 65 20 63 | 6f 6d 6d 61 6e 64 20 69 |se the c|ommand i|
|00001c70| 6e 20 65 69 74 68 65 72 | 20 73 63 72 65 65 6e 20 |n either| screen |
|00001c80| 6f 72 20 70 72 69 6e 74 | 65 72 2e 20 20 55 6c 74 |or print|er. Ult|
|00001c90| 69 6d 61 74 65 6c 79 20 | 74 68 65 20 75 73 65 72 |imately |the user|
|00001ca0| 20 77 69 6c 6c 20 6f 6e | 6c 79 20 75 73 65 20 61 | will on|ly use a|
|00001cb0| 20 73 6d 61 6c 6c 20 66 | 72 61 63 74 69 6f 6e 20 | small f|raction |
|00001cc0| 6f 66 20 74 68 65 20 63 | 61 70 61 62 69 6c 69 74 |of the c|apabilit|
|00001cd0| 69 65 73 20 6f 66 20 61 | 20 50 6f 73 74 53 63 72 |ies of a| PostScr|
|00001ce0| 69 70 74 20 6c 61 73 65 | 72 20 70 72 69 6e 74 65 |ipt lase|r printe|
|00001cf0| 72 20 73 69 6e 63 65 20 | 50 6f 73 74 53 63 72 69 |r since |PostScri|
|00001d00| 70 74 20 73 65 65 6d 73 | 20 74 6f 20 62 65 20 6f |pt seems| to be o|
|00001d10| 6e 65 20 6f 66 20 74 68 | 65 20 6d 6f 73 74 20 66 |ne of th|e most f|
|00001d20| 6c 65 78 69 62 6c 65 20 | 6c 61 6e 67 75 61 67 65 |lexible |language|
|00001d30| 73 2e 20 20 54 68 65 20 | 73 65 63 6f 6e 64 20 70 |s. The |second p|
|00001d40| 72 6f 62 6c 65 6d 2c 20 | 74 68 61 74 20 6f 66 20 |roblem, |that of |
|00001d50| 74 68 65 20 64 72 61 77 | 69 6e 67 20 63 6f 6d 6d |the draw|ing comm|
|00001d60| 61 6e 64 73 20 64 6f 69 | 6e 67 20 73 6c 69 67 68 |ands doi|ng sligh|
|00001d70| 74 6c 79 20 64 69 66 66 | 65 72 65 6e 74 20 74 68 |tly diff|erent th|
|00001d80| 69 6e 67 73 20 69 73 20 | 74 6f 6c 65 72 61 62 6c |ings is |tolerabl|
|00001d90| 65 20 69 66 20 79 6f 75 | 20 6a 75 73 74 20 77 61 |e if you| just wa|
|00001da0| 6e 74 20 74 65 78 74 20 | 61 6e 64 20 73 6f 6d 65 |nt text |and some|
|00001db0| 20 70 72 69 6d 69 74 69 | 76 65 20 67 72 61 70 68 | primiti|ve graph|
|00001dc0| 69 63 73 2e 20 20 42 75 | 74 20 77 68 61 74 20 61 |ics. Bu|t what a|
|00001dd0| 62 6f 75 74 20 61 6c 6c | 20 74 68 65 20 64 65 74 |bout all| the det|
|00001de0| 61 69 6c 73 3f 20 20 46 | 6f 72 20 65 78 61 6d 70 |ails? F|or examp|
|00001df0| 6c 65 2c 20 77 68 61 74 | 20 69 66 20 79 6f 75 20 |le, what| if you |
|00001e00| 61 72 65 20 64 72 61 77 | 69 6e 67 20 74 6f 20 6c |are draw|ing to l|
|00001e10| 69 6e 65 73 20 61 6e 64 | 20 79 6f 75 20 77 61 6e |ines and| you wan|
|00001e20| 74 20 74 6f 20 63 6f 6e | 74 72 6f 6c 20 74 68 65 |t to con|trol the|
|00001e30| 20 77 61 79 20 74 68 65 | 79 20 6c 6f 6f 6b 20 77 | way the|y look w|
|00001e40| 68 65 6e 20 74 68 65 20 | 6c 69 6e 65 73 20 61 72 |hen the |lines ar|
|00001e50| 65 20 6a 6f 69 6e 65 64 | 3f 20 20 28 73 65 65 20 |e joined|? (see |
|00001e60| 65 78 65 72 63 69 73 65 | 20 38 2d 33 29 20 50 65 |exercise| 8-3) Pe|
|00001e70| 6f 70 6c 65 20 64 6f 69 | 6e 67 20 63 72 65 61 74 |ople doi|ng creat|
|00001e80| 69 76 65 20 77 6f 72 6b | 20 66 69 6e 64 20 74 68 |ive work| find th|
|00001e90| 61 74 20 74 68 65 20 70 | 72 65 63 69 73 69 6f 6e |at the p|recision|
|00001ea0| 20 74 68 61 74 20 79 6f | 75 20 63 61 6e 20 63 6f | that yo|u can co|
|00001eb0| 6e 74 72 6f 6c 20 64 65 | 74 61 69 6c 73 20 77 69 |ntrol de|tails wi|
|00001ec0| 74 68 20 50 6f 73 74 53 | 63 72 69 70 74 20 64 6f |th PostS|cript do|
|00001ed0| 6e 27 74 20 77 6f 72 6b | 20 6f 6e 20 73 6f 6d 65 |n't work| on some|
|00001ee0| 20 6f 74 68 65 72 20 64 | 72 61 77 69 6e 67 20 65 | other d|rawing e|
|00001ef0| 6e 76 69 72 6f 6e 6d 65 | 6e 74 73 2e 20 20 53 6f |nvironme|nts. So|
|00001f00| 20 74 68 65 20 66 65 61 | 74 75 72 65 73 20 61 72 | the fea|tures ar|
|00001f10| 65 20 6f 66 74 65 6e 20 | 6a 75 73 74 20 6c 65 66 |e often |just lef|
|00001f20| 74 20 6f 75 74 2e 20 20 | 54 68 65 20 75 73 65 72 |t out. |The user|
|00001f30| 20 69 73 20 6c 65 66 74 | 20 77 69 74 68 20 6f 6e | is left| with on|
|00001f40| 6c 79 20 61 20 70 72 69 | 6d 69 74 69 76 65 20 73 |ly a pri|mitive s|
|00001f50| 75 62 73 65 74 20 6f 66 | 20 61 6c 6c 20 74 68 65 |ubset of| all the|
|00001f60| 20 66 65 61 74 75 72 65 | 73 20 74 68 65 69 72 20 | feature|s their |
|00001f70| 73 79 73 74 65 6d 20 69 | 73 20 63 61 70 61 62 6c |system i|s capabl|
|00001f80| 65 20 6f 66 2e 0d 02 e1 | fc 00 5a 02 0a 00 5a 00 |e of....|..Z...Z.|
|00001f90| 0e 01 b0 06 30 f7 0d fc | 00 48 02 0a 00 48 00 0e |....0...|.H...H..|
|00001fa0| 01 b0 06 30 f7 ff 00 15 | 10 01 f7 53 69 6d 70 6c |...0....|...Simpl|
|00001fb0| 65 20 44 72 61 77 69 6e | 67 ff 00 15 0a 00 f7 0d |e Drawin|g.......|
|00001fc0| fc 00 5a 02 0a 00 5a 00 | 0e 01 b0 06 30 f7 0d fc |..Z...Z.|....0...|
|00001fd0| 00 48 02 0a 00 48 00 0e | 01 b0 06 30 f7 ff 00 15 |.H...H..|...0....|
|00001fe0| 0e 01 f7 45 78 61 6d 70 | 6c 65 3a 20 44 72 61 77 |...Examp|le: Draw|
|00001ff0| 69 6e 67 20 61 20 6c 69 | 6e 65 ff 00 15 12 01 f7 |ing a li|ne......|
|00002000| 0d ff 00 15 0a 00 f7 fc | 00 5a 02 0a 00 5a 00 0e |........|.Z...Z..|
|00002010| 01 b0 06 30 f7 0d fc 00 | 6c 02 0a 00 6c 00 0e 01 |...0....|l...l...|
|00002020| f0 08 06 30 f7 48 65 72 | 65 20 69 73 20 61 6e 20 |...0.Her|e is an |
|00002030| 65 78 61 6d 70 6c 65 20 | 70 72 6f 67 72 61 6d 20 |example |program |
|00002040| 74 68 61 74 20 73 68 6f | 77 73 20 68 6f 77 20 74 |that sho|ws how t|
|00002050| 6f 20 73 65 6e 64 20 50 | 6f 73 74 73 63 72 69 70 |o send P|ostscrip|
|00002060| 74 20 74 6f 20 61 20 43 | 75 73 74 6f 6d 20 56 69 |t to a C|ustom Vi|
|00002070| 65 77 2e 20 20 41 20 43 | 75 73 74 6f 6d 20 56 69 |ew. A C|ustom Vi|
|00002080| 65 77 20 69 73 20 73 69 | 6d 70 6c 79 20 61 20 72 |ew is si|mply a r|
|00002090| 65 67 69 6f 6e 20 69 6e | 73 69 64 65 20 6f 66 20 |egion in|side of |
|000020a0| 61 20 77 69 6e 64 6f 77 | 20 74 68 61 74 20 77 65 |a window| that we|
|000020b0| 20 77 69 6c 6c 20 64 72 | 61 77 20 69 6e 74 6f 2e | will dr|aw into.|
|000020c0| 20 20 57 65 20 77 69 6c | 6c 20 63 72 65 61 74 65 | We wil|l create|
|000020d0| 20 69 74 20 62 79 20 63 | 72 65 61 74 69 6e 67 20 | it by c|reating |
|000020e0| 61 20 73 75 62 63 6c 61 | 73 73 20 6f 66 20 74 68 |a subcla|ss of th|
|000020f0| 65 20 56 69 65 77 20 6f | 62 6a 65 63 74 2c 20 6a |e View o|bject, j|
|00002100| 75 73 74 20 61 73 20 77 | 65 20 63 72 65 61 74 65 |ust as w|e create|
|00002110| 64 20 61 20 73 75 62 2d | 63 6c 61 73 73 20 6f 66 |d a sub-|class of|
|00002120| 20 74 68 65 20 4f 62 6a | 65 63 74 20 63 6c 61 73 | the Obj|ect clas|
|00002130| 73 20 69 6e 20 63 68 61 | 70 74 65 72 20 33 2e 20 |s in cha|pter 3. |
|00002140| 20 49 6e 20 66 61 63 74 | 20 74 68 65 20 70 72 6f | In fact| the pro|
|00002150| 63 65 73 73 20 6f 66 20 | 63 72 65 61 74 69 6e 67 |cess of |creating|
|00002160| 20 61 20 63 75 73 74 6f | 6d 20 76 69 65 77 20 77 | a custo|m view w|
|00002170| 69 6c 6c 20 62 65 20 76 | 65 72 79 20 73 69 6d 69 |ill be v|ery simi|
|00002180| 6c 61 72 20 74 6f 20 74 | 68 65 20 70 72 6f 63 65 |lar to t|he proce|
|00002190| 73 73 20 6f 66 20 63 72 | 65 61 74 69 6e 67 20 61 |ss of cr|eating a|
|000021a0| 20 63 75 73 74 6f 6d 20 | 6f 62 6a 65 63 74 2e 20 | custom |object. |
|000021b0| 20 54 68 65 20 64 69 66 | 66 65 72 65 6e 63 65 20 | The dif|ference |
|000021c0| 69 73 20 74 68 61 74 20 | 77 65 20 77 69 6c 6c 20 |is that |we will |
|000021d0| 64 72 61 67 20 61 6e 20 | 69 6e 73 74 61 6e 63 65 |drag an |instance|
|000021e0| 20 6f 66 20 74 68 65 20 | 63 75 73 74 6f 6d 20 56 | of the |custom V|
|000021f0| 69 65 77 20 6f 62 6a 65 | 63 74 20 66 72 6f 6d 20 |iew obje|ct from |
|00002200| 74 68 65 20 70 61 6c 65 | 74 74 65 20 61 6e 64 20 |the pale|tte and |
|00002210| 74 68 65 6e 20 6d 61 6b | 65 20 69 74 20 61 6e 20 |then mak|e it an |
|00002220| 69 6e 73 74 61 6e 63 65 | 20 6f 66 20 6f 75 72 20 |instance| of our |
|00002230| 73 75 62 2d 63 6c 61 73 | 73 20 6f 66 20 56 69 65 |sub-clas|s of Vie|
|00002240| 77 20 74 68 61 74 20 77 | 65 20 63 72 65 61 74 65 |w that w|e create|
|00002250| 20 77 69 74 68 20 74 68 | 65 20 63 6c 61 73 73 20 | with th|e class |
|00002260| 65 64 69 74 6f 72 2e 20 | 0d 01 34 fc 00 5a 02 0a |editor. |..4..Z..|
|00002270| 00 5a 00 0e 01 b0 06 30 | f7 0d ff 00 15 0a 01 f7 |.Z.....0|........|
|00002280| 50 72 6f 63 65 64 75 72 | 65 ff 00 15 0a 00 f7 0d |Procedur|e.......|
|00002290| fc 00 7e 01 e6 00 7e 00 | 0e 02 b0 06 30 f7 0d 31 |..~...~.|....0..1|
|000022a0| 29 20 53 74 61 72 74 20 | 75 70 20 49 6e 74 65 72 |) Start |up Inter|
|000022b0| 66 61 63 65 20 42 75 69 | 6c 64 65 72 2e 20 20 46 |face Bui|lder. F|
|000022c0| 72 6f 6d 20 74 68 65 20 | 6d 61 69 6e 20 6d 65 6e |rom the |main men|
|000022d0| 75 2c 20 73 65 6c 65 63 | 74 20 22 46 69 6c 65 22 |u, selec|t "File"|
|000022e0| 20 61 6e 64 20 22 4e 65 | 77 20 41 70 70 6c 69 63 | and "Ne|w Applic|
|000022f0| 61 74 69 6f 6e 22 2e 0d | 0d 32 29 20 44 72 61 67 |ation"..|.2) Drag|
|00002300| 20 61 20 43 75 73 74 6f | 6d 20 56 69 65 77 20 6f | a Custo|m View o|
|00002310| 6e 74 6f 20 74 68 65 20 | 4d 61 69 6e 20 57 69 6e |nto the |Main Win|
|00002320| 64 6f 77 2e 20 20 52 65 | 2d 73 69 7a 65 20 69 74 |dow. Re|-size it|
|00002330| 20 74 6f 20 66 69 6c 6c | 20 6d 6f 73 74 20 6f 66 | to fill| most of|
|00002340| 20 74 68 65 20 6d 61 69 | 6e 20 77 69 6e 64 6f 77 | the mai|n window|
|00002350| 2e 20 20 54 68 65 20 6d | 61 69 6e 20 77 69 6e 64 |. The m|ain wind|
|00002360| 6f 77 20 6f 66 20 49 6e | 74 65 72 66 61 63 65 20 |ow of In|terface |
|00002370| 42 75 69 6c 64 65 72 20 | 73 68 6f 75 6c 64 20 6c |Builder |should l|
|00002380| 69 6b 65 20 66 69 67 75 | 72 65 20 33 2e 0d 0d 0d |ike figu|re 3....|
|00002390| fc 00 7e 01 e6 00 7e 02 | 0e 02 b0 06 30 f7 0d 03 |..~...~.|....0...|
|000023a0| 6b 4d 79 56 69 65 77 2e | 6d 3a 31 32 3a 20 77 61 |kMyView.|m:12: wa|
|000023b0| 72 6e 69 6e 67 3a 20 69 | 6d 70 6c 69 63 69 74 20 |rning: i|mplicit |
|000023c0| 64 65 63 6c 61 72 61 74 | 69 6f 6e 20 6f 66 20 66 |declarat|ion of f|
|000023d0| 75 6e 63 74 69 6f 6e 20 | 60 50 53 73 65 74 6c 69 |unction |`PSsetli|
|000023e0| 6e 65 77 69 64 74 68 27 | 0d 4d 79 56 69 65 77 2e |newidth'|.MyView.|
|000023f0| 6d 3a 31 33 3a 20 77 61 | 72 6e 69 6e 67 3a 20 69 |m:13: wa|rning: i|
|00002400| 6d 70 6c 69 63 69 74 20 | 64 65 63 6c 61 72 61 74 |mplicit |declarat|
|00002410| 69 6f 6e 20 6f 66 20 66 | 75 6e 63 74 69 6f 6e 20 |ion of f|unction |
|00002420| 60 50 53 6e 65 77 70 61 | 74 68 27 0d 4d 79 56 69 |`PSnewpa|th'.MyVi|
|00002430| 65 77 2e 6d 3a 31 34 3a | 20 77 61 72 6e 69 6e 67 |ew.m:14:| warning|
|00002440| 3a 20 69 6d 70 6c 69 63 | 69 74 20 64 65 63 6c 61 |: implic|it decla|
|00002450| 72 61 74 69 6f 6e 20 6f | 66 20 66 75 6e 63 74 69 |ration o|f functi|
|00002460| 6f 6e 20 60 50 53 6d 6f | 76 65 74 6f 27 0d 4d 79 |on `PSmo|veto'.My|
|00002470| 56 69 65 77 2e 6d 3a 31 | 35 3a 20 77 61 72 6e 69 |View.m:1|5: warni|
|00002480| 6e 67 3a 20 69 6d 70 6c | 69 63 69 74 20 64 65 63 |ng: impl|icit dec|
|00002490| 6c 61 72 61 74 69 6f 6e | 20 6f 66 20 66 75 6e 63 |laration| of func|
|000024a0| 74 69 6f 6e 20 60 50 53 | 6c 69 6e 65 74 6f 27 0d |tion `PS|lineto'.|
|000024b0| 4d 79 56 69 65 77 2e 6d | 3a 31 36 3a 20 77 61 72 |MyView.m|:16: war|
|000024c0| 6e 69 6e 67 3a 20 69 6d | 70 6c 69 63 69 74 20 64 |ning: im|plicit d|
|000024d0| 65 63 6c 61 72 61 74 69 | 6f 6e 20 6f 66 20 66 75 |eclarati|on of fu|
|000024e0| 6e 63 74 69 6f 6e 20 60 | 50 53 73 74 72 6f 6b 65 |nction `|PSstroke|
|000024f0| 27 0d ff 00 15 0a 00 f7 | f9 00 f7 0d 54 68 65 73 |'.......|....Thes|
|00002500| 65 20 65 72 72 6f 72 73 | 20 6f 63 63 75 72 20 62 |e errors| occur b|
|00002510| 65 63 61 75 73 65 20 6f | 75 72 20 70 72 6f 67 72 |ecause o|ur progr|
|00002520| 61 6d 20 64 6f 65 73 20 | 6e 6f 74 20 6b 6e 6f 77 |am does |not know|
|00002530| 20 74 68 65 20 74 79 70 | 65 73 20 66 6f 72 20 74 | the typ|es for t|
|00002540| 68 65 20 61 72 67 75 6d | 65 6e 74 73 20 50 6f 73 |he argum|ents Pos|
|00002550| 74 53 63 72 69 70 74 20 | 66 75 6e 63 74 69 6f 6e |tScript |function|
|00002560| 73 20 61 72 65 20 61 6e | 64 20 74 68 65 69 72 20 |s are an|d their |
|00002570| 72 65 74 75 72 6e 20 76 | 61 6c 75 65 73 2e 20 20 |return v|alues. |
|00002580| 54 6f 20 61 6c 6c 6f 77 | 20 74 68 65 73 65 20 66 |To allow| these f|
|00002590| 75 6e 63 74 69 6f 6e 73 | 20 74 6f 20 62 65 20 66 |unctions| to be f|
|000025a0| 6f 75 6e 64 20 77 65 20 | 68 61 76 65 20 74 6f 20 |ound we |have to |
|000025b0| 61 64 64 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |add the |followin|
|000025c0| 67 20 6c 69 6e 65 20 61 | 74 20 74 68 65 20 62 65 |g line a|t the be|
|000025d0| 67 69 6e 6e 69 6e 67 20 | 6f 66 20 6f 75 72 20 4d |ginning |of our M|
|000025e0| 79 56 69 65 77 2e 6d 20 | 66 69 6c 65 3a 0d 0d 23 |yView.m |file:..#|
|000025f0| 69 6d 70 6f 72 74 20 3c | 64 70 73 63 6c 69 65 6e |import <|dpsclien|
|00002600| 74 2f 77 72 61 70 73 2e | 68 3e 0d 0d 31 30 29 20 |t/wraps.|h>..10) |
|00002610| 46 72 6f 6d 20 74 68 65 | 20 6d 61 69 6e 20 49 6e |From the| main In|
|00002620| 74 65 72 66 61 63 65 20 | 42 75 69 6c 64 65 72 20 |terface |Builder |
|00002630| 6d 65 6e 75 20 73 65 6c | 65 63 74 20 22 46 69 6c |menu sel|ect "Fil|
|00002640| 65 22 20 61 6e 64 20 22 | 6d 61 6b 65 22 2e 20 20 |e" and "|make". |
|00002650| 49 66 20 79 6f 75 20 68 | 61 76 65 20 6e 6f 74 20 |If you h|ave not |
|00002660| 61 6c 72 65 61 64 79 20 | 62 72 6f 75 67 68 74 20 |already |brought |
|00002670| 75 70 20 61 20 54 65 72 | 6d 69 6e 61 6c 20 77 69 |up a Ter|minal wi|
|00002680| 6e 64 6f 77 20 6f 6e 65 | 20 77 69 6c 6c 20 62 65 |ndow one| will be|
|00002690| 20 73 74 61 72 74 65 64 | 20 66 6f 72 20 79 6f 75 | started| for you|
|000026a0| 2e 20 20 59 6f 75 20 73 | 68 6f 75 6c 64 20 73 65 |. You s|hould se|
|000026b0| 65 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |e the fo|llowing |
|000026c0| 63 6f 6d 70 69 6c 65 20 | 61 6e 64 20 6c 69 6e 6b |compile |and link|
|000026d0| 20 63 6f 6d 6d 61 6e 64 | 73 20 62 65 20 65 78 65 | command|s be exe|
|000026e0| 63 75 74 65 64 3a 0d 0d | fc 00 90 01 e6 00 90 00 |cuted:..|........|
|000026f0| 0e 02 a8 06 30 f7 ff 00 | 16 08 00 f7 6c 6f 63 61 |....0...|....loca|
|00002700| 6c 68 6f 73 74 3e 20 6d | 61 6b 65 0d 02 ea 6d 61 |lhost> m|ake...ma|
|00002710| 6b 65 20 76 69 65 77 20 | 22 4f 46 49 4c 45 5f 44 |ke view |"OFILE_D|
|00002720| 49 52 20 3d 20 6f 62 6a | 22 20 20 22 43 46 4c 41 |IR = obj|" "CFLA|
|00002730| 47 53 20 3d 20 20 2d 4f | 20 2d 67 20 2d 57 69 6d |GS = -O| -g -Wim|
|00002740| 70 6c 69 63 69 74 22 0d | 6d 6b 64 69 72 73 20 6f |plicit".|mkdirs o|
|00002750| 62 6a 0d 63 63 20 2d 4f | 20 2d 67 20 2d 57 69 6d |bj.cc -O| -g -Wim|
|00002760| 70 6c 69 63 69 74 20 20 | 2d 63 20 4d 79 56 69 65 |plicit |-c MyVie|
|00002770| 77 2e 6d 20 2d 6f 20 6f | 62 6a 2f 4d 79 56 69 65 |w.m -o o|bj/MyVie|
|00002780| 77 2e 6f 0d 63 63 20 2d | 4f 20 2d 67 20 2d 57 69 |w.o.cc -|O -g -Wi|
|00002790| 6d 70 6c 69 63 69 74 20 | 20 2d 63 20 76 69 65 77 |mplicit | -c view|
|000027a0| 5f 6d 61 69 6e 2e 6d 20 | 2d 6f 20 6f 62 6a 2f 76 |_main.m |-o obj/v|
|000027b0| 69 65 77 5f 6d 61 69 6e | 2e 6f 0d 63 63 20 2d 4f |iew_main|.o.cc -O|
|000027c0| 20 2d 67 20 2d 57 69 6d | 70 6c 69 63 69 74 20 2d | -g -Wim|plicit -|
|000027d0| 73 65 67 63 72 65 61 74 | 65 20 5f 5f 49 43 4f 4e |segcreat|e __ICON|
|000027e0| 20 5f 5f 68 65 61 64 65 | 72 20 76 69 65 77 2e 69 | __heade|r view.i|
|000027f0| 63 6f 6e 68 65 61 64 65 | 72 20 2d 73 65 67 63 72 |conheade|r -segcr|
|00002800| 65 61 74 65 20 5f 5f 49 | 43 4f 4e 20 61 70 70 20 |eate __I|CON app |
|00002810| 2f 75 73 72 2f 6c 69 62 | 2f 6e 69 62 2f 64 65 66 |/usr/lib|/nib/def|
|00002820| 61 75 6c 74 5f 61 70 70 | 5f 69 63 6f 6e 2e 74 69 |ault_app|_icon.ti|
|00002830| 66 66 20 2d 73 65 67 63 | 72 65 61 74 65 20 5f 5f |ff -segc|reate __|
|00002840| 4e 49 42 20 76 69 65 77 | 2e 6e 69 62 20 76 69 65 |NIB view|.nib vie|
|00002850| 77 2e 6e 69 62 20 2d 6f | 20 76 69 65 77 20 6f 62 |w.nib -o| view ob|
|00002860| 6a 2f 4d 79 56 69 65 77 | 2e 6f 20 6f 62 6a 2f 76 |j/MyView|.o obj/v|
|00002870| 69 65 77 5f 6d 61 69 6e | 2e 6f 20 2d 6c 4e 65 58 |iew_main|.o -lNeX|
|00002880| 54 5f 73 20 2d 6c 73 79 | 73 5f 73 0d 6c 6f 63 61 |T_s -lsy|s_s.loca|
|00002890| 6c 68 6f 73 74 3e 20 0d | fc 00 7e 01 e6 00 7e 00 |lhost> .|..~...~.|
|000028a0| 0e 02 b0 06 30 f7 0d ff | 00 15 0a 00 f7 41 66 74 |....0...|.....Aft|
|000028b0| 65 72 20 74 68 69 73 20 | 72 75 6e 73 20 77 69 74 |er this |runs wit|
|000028c0| 68 6f 75 74 20 65 72 72 | 6f 72 73 20 79 6f 75 20 |hout err|ors you |
|000028d0| 63 61 6e 20 74 68 65 6e | 20 65 78 65 63 75 74 65 |can then| execute|
|000028e0| 20 74 68 65 20 70 72 6f | 67 72 61 6d 20 62 79 20 | the pro|gram by |
|000028f0| 64 6f 75 62 6c 65 20 63 | 6c 69 63 6b 69 6e 67 20 |double c|licking |
|00002900| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |the appl|ication |
|00002910| 69 6e 20 74 68 65 20 62 | 72 6f 77 73 65 72 20 6f |in the b|rowser o|
|00002920| 72 20 6a 75 73 74 20 74 | 79 70 69 6e 67 20 22 ff |r just t|yping ".|
|00002930| 00 16 0a 00 f7 76 69 65 | 77 ff 00 15 0a 00 f7 22 |.....vie|w......"|
|00002940| 20 69 6e 20 74 68 65 20 | 73 68 65 6c 6c 20 28 6d | in the |shell (m|
|00002950| 61 6b 65 20 73 75 72 65 | 20 79 6f 75 20 61 72 65 |ake sure| you are|
|00002960| 20 69 6e 20 74 68 65 20 | 63 6f 72 72 65 63 74 20 | in the |correct |
|00002970| 64 69 72 65 63 74 6f 72 | 79 20 62 79 20 74 79 70 |director|y by typ|
|00002980| 69 6e 67 20 ff 00 16 0a | 00 f7 63 64 20 2f 6d 65 |ing ....|..cd /me|
|00002990| 2f 50 72 6f 67 72 61 6d | 6d 69 6e 67 2f 43 75 73 |/Program|ming/Cus|
|000029a0| 74 6f 6d 56 69 65 77 ff | 00 15 0a 00 f7 20 66 69 |tomView.|..... fi|
|000029b0| 72 73 74 29 2e 20 20 59 | 6f 75 20 73 68 6f 75 6c |rst). Y|ou shoul|
|000029c0| 64 20 73 65 65 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |d see th|e follow|
|000029d0| 69 6e 67 20 61 70 70 65 | 61 72 20 69 6e 20 61 20 |ing appe|ar in a |
|000029e0| 77 69 6e 64 6f 77 3a 0d | 0d fc 00 7e 01 e6 00 7e |window:.|...~...~|
|000029f0| 02 0e 02 b0 06 30 f7 0d | 00 32 fc 00 7e 01 e6 00 |.....0..|.2..~...|
|00002a00| 7e 00 0e 02 b0 06 30 f7 | fb 00 00 00 01 00 f0 0b |~.....0.|........|
|00002a10| 01 60 38 2d 37 5f 4c 69 | 6e 65 44 72 61 77 6e 2e |.`8-7_Li|neDrawn.|
|00002a20| 32 35 39 39 35 32 2e 65 | 70 73 f7 0d 03 dc 0d ff |259952.e|ps......|
|00002a30| 00 15 0a 01 f7 53 74 65 | 70 20 33 3a 20 41 64 64 |.....Ste|p 3: Add|
|00002a40| 20 74 68 65 20 63 6f 64 | 65 20 74 6f 20 74 68 65 | the cod|e to the|
|00002a50| 20 4d 79 56 69 65 77 2e | 6d 20 66 69 6c 65 2e ff | MyView.|m file..|
|00002a60| 00 15 0a 00 f7 0d 57 65 | 20 74 68 65 6e 20 77 69 |......We| then wi|
|00002a70| 6c 6c 20 61 64 64 20 6f | 6e 65 20 73 65 63 74 69 |ll add o|ne secti|
|00002a80| 6f 6e 20 6f 66 20 63 6f | 64 65 20 74 6f 20 74 68 |on of co|de to th|
|00002a90| 65 20 4d 79 56 69 65 77 | 2e 6d 20 66 69 6c 65 2e |e MyView|.m file.|
|00002aa0| 20 20 54 68 69 73 20 63 | 6f 64 65 20 77 69 6c 6c | This c|ode will|
|00002ab0| 20 67 65 74 20 74 68 65 | 20 76 61 6c 75 65 20 6f | get the| value o|
|00002ac0| 75 74 20 6f 66 20 61 20 | 73 6c 69 64 65 72 20 61 |ut of a |slider a|
|00002ad0| 6e 64 20 69 6e 73 74 72 | 75 63 74 20 74 68 65 20 |nd instr|uct the |
|00002ae0| 6f 62 6a 65 63 74 20 74 | 6f 20 22 72 65 2d 64 69 |object t|o "re-di|
|00002af0| 73 70 6c 61 79 22 20 69 | 74 73 65 6c 66 2e 0d 20 |splay" i|tself.. |
|00002b00| 20 20 0d 54 68 65 20 6d | 79 53 6c 69 64 65 72 20 | .The m|ySlider |
|00002b10| 61 63 74 69 6f 6e 20 69 | 73 20 74 68 65 20 66 6f |action i|s the fo|
|00002b20| 6c 6c 6f 77 69 6e 67 3a | 0d fc 00 7e 01 e6 00 7e |llowing:|...~...~|
|00002b30| 00 0e 02 b0 06 30 f7 0d | fc 00 a1 01 e6 00 a1 00 |.....0..|........|
|00002b40| 0e 02 b0 06 30 f7 ff 00 | 16 0a 00 f7 2d 20 6d 79 |....0...|....- my|
|00002b50| 53 6c 69 64 65 72 3a 73 | 65 6e 64 65 72 0d 7b 0d |Slider:s|ender.{.|
|00002b60| 20 20 20 20 6d 79 46 6c | 6f 61 74 20 3d 20 5b 73 | myFl|oat = [s|
|00002b70| 65 6e 64 65 72 20 66 6c | 6f 61 74 56 61 6c 75 65 |ender fl|oatValue|
|00002b80| 5d 3b 0d 20 20 20 20 5b | 73 65 6c 66 20 64 69 73 |];. [|self dis|
|00002b90| 70 6c 61 79 5d 3b 0d 20 | 20 20 20 72 65 74 75 72 |play];. | retur|
|00002ba0| 6e 20 73 65 6c 66 3b 0d | 7d 0d 0d ff 00 15 0a 00 |n self;.|}.......|
|00002bb0| f7 0d fc 00 6c 01 e6 00 | 6c 00 0e 02 b0 06 30 f7 |....l...|l.....0.|
|00002bc0| 54 68 65 20 66 69 72 73 | 74 20 6c 69 6e 65 20 6f |The firs|t line o|
|00002bd0| 66 20 63 6f 64 65 3a 0d | 0d fc 00 a1 01 e6 00 a1 |f code:.|........|
|00002be0| 00 0e 02 b0 06 30 f7 ff | 00 16 0a 00 f7 6d 79 46 |.....0..|.....myF|
|00002bf0| 6c 6f 61 74 20 3d 20 5b | 73 65 6e 64 65 72 20 66 |loat = [|sender f|
|00002c00| 6c 6f 61 74 56 61 6c 75 | 65 5d 3b 0d 20 20 20 20 |loatValu|e];. |
|00002c10| ff 00 15 0a 00 f7 0d fc | 00 6c 01 e6 00 6c 00 0e |........|.l...l..|
|00002c20| 02 b0 06 30 f7 73 61 79 | 73 20 22 67 65 74 20 74 |...0.say|s "get t|
|00002c30| 68 65 20 66 6c 6f 61 74 | 20 76 61 6c 75 65 20 6f |he float| value o|
|00002c40| 75 74 20 6f 66 20 74 68 | 65 20 6f 62 6a 65 63 74 |ut of th|e object|
|00002c50| 20 74 68 61 74 20 63 61 | 75 73 65 64 20 74 68 69 | that ca|used thi|
|00002c60| 73 20 65 76 65 6e 74 22 | 20 20 54 68 65 20 73 65 |s event"| The se|
|00002c70| 6e 64 65 72 2c 20 77 68 | 69 63 68 20 69 6e 20 74 |nder, wh|ich in t|
|00002c80| 68 69 73 20 63 61 73 65 | 20 69 73 20 74 68 65 20 |his case| is the |
|00002c90| 73 6c 69 64 65 72 20 62 | 61 72 20 74 68 65 6e 20 |slider b|ar then |
|00002ca0| 72 65 74 75 72 6e 73 20 | 69 73 20 76 61 6c 75 65 |returns |is value|
|00002cb0| 20 77 68 69 63 68 20 69 | 73 20 61 73 73 69 67 6e | which i|s assign|
|00002cc0| 65 64 20 74 6f 20 74 68 | 65 20 69 6e 73 74 61 6e |ed to th|e instan|
|00002cd0| 63 65 20 76 61 72 69 61 | 62 6c 65 20 6d 79 46 6c |ce varia|ble myFl|
|00002ce0| 6f 61 74 2e 20 20 53 6f | 20 77 68 65 6e 20 74 68 |oat. So| when th|
|00002cf0| 65 20 73 6c 69 64 65 72 | 20 6d 6f 76 65 73 2c 20 |e slider| moves, |
|00002d00| 69 74 20 75 70 64 61 74 | 65 73 20 74 68 65 20 69 |it updat|es the i|
|00002d10| 6e 74 65 72 6e 61 6c 20 | 73 74 61 74 65 0d 76 61 |nternal |state.va|
|00002d20| 72 69 61 62 6c 65 20 6d | 79 46 6c 6f 61 74 20 74 |riable m|yFloat t|
|00002d30| 6f 20 74 68 65 20 76 61 | 6c 75 65 20 6f 66 20 74 |o the va|lue of t|
|00002d40| 68 65 20 73 6c 69 64 65 | 72 2e 20 20 57 65 20 6d |he slide|r. We m|
|00002d50| 75 73 74 20 61 6c 73 6f | 20 61 64 64 20 74 68 65 |ust also| add the|
|00002d60| 20 69 6e 63 6c 75 64 65 | 20 66 69 6c 65 20 74 6f | include| file to|
|00002d70| 20 69 6e 64 69 63 61 74 | 65 20 74 68 65 20 74 79 | indicat|e the ty|
|00002d80| 70 65 73 20 6f 66 20 74 | 68 65 20 66 6c 6f 61 74 |pes of t|he float|
|00002d90| 56 61 6c 75 65 20 6d 65 | 74 68 6f 64 20 74 6f 20 |Value me|thod to |
|00002da0| 74 68 65 20 73 6c 69 64 | 65 72 2e 20 20 53 69 6e |the slid|er. Sin|
|00002db0| 63 65 20 74 68 69 73 20 | 69 73 20 61 20 6f 62 6a |ce this |is a obj|
|00002dc0| 65 63 74 20 74 68 61 74 | 20 63 6f 6e 74 72 6f 6c |ect that| control|
|00002dd0| 73 20 61 6e 6f 74 68 65 | 72 20 6f 62 6a 65 63 74 |s anothe|r object|
|00002de0| 20 74 68 65 20 68 65 61 | 64 65 72 20 66 69 6c 65 | the hea|der file|
|00002df0| 20 77 65 20 61 64 64 20 | 69 73 20 74 68 65 20 66 | we add |is the f|
|00002e00| 6f 6c 6c 6f 77 69 6e 67 | 3a 0d 03 b8 fc 00 6d 01 |ollowing|:.....m.|
|00002e10| e6 00 6d 00 0e 02 b0 06 | 30 f7 0d fc 00 90 01 e6 |..m.....|0.......|
|00002e20| 00 90 00 0e 02 b0 06 30 | f7 ff 00 16 0a 00 f7 23 |.......0|.......#|
|00002e30| 69 6d 70 6f 72 74 20 3c | 61 70 70 6b 69 74 2f 43 |import <|appkit/C|
|00002e40| 6f 6e 74 72 6f 6c 2e 68 | 3e 0d fc 00 6d 01 e6 00 |ontrol.h|>...m...|
|00002e50| 6d 00 0e 02 b0 06 30 f7 | ff 00 15 0a 00 f7 0d fc |m.....0.|........|
|00002e60| 00 6c 01 e6 00 6c 00 0e | 02 b0 06 30 f7 54 68 65 |.l...l..|...0.The|
|00002e70| 20 73 65 63 6f 6e 64 20 | 6c 69 6e 65 3a 0d 0d fc | second |line:...|
|00002e80| 00 a1 01 e6 00 a1 00 0e | 02 b0 06 30 f7 ff 00 16 |........|...0....|
|00002e90| 0a 00 f7 5b 73 65 6c 66 | 20 64 69 73 70 6c 61 79 |...[self| display|
|00002ea0| 5d 3b 0d 20 20 20 20 ff | 00 15 0a 00 f7 0d fc 00 |];. .|........|
|00002eb0| 6c 01 e6 00 6c 00 0e 02 | b0 06 30 f7 73 65 6e 64 |l...l...|..0.send|
|00002ec0| 73 20 61 20 6d 65 73 73 | 61 67 65 20 74 6f 20 74 |s a mess|age to t|
|00002ed0| 68 65 20 64 69 73 70 6c | 61 79 20 6d 61 6e 61 67 |he displ|ay manag|
|00002ee0| 65 72 20 74 65 6c 6c 69 | 6e 67 20 69 74 20 74 6f |er telli|ng it to|
|00002ef0| 20 72 65 2d 64 69 73 70 | 6c 61 79 20 74 68 65 20 | re-disp|lay the |
|00002f00| 6f 62 6a 65 63 74 2c 20 | 77 68 69 63 68 20 69 6e |object, |which in|
|00002f10| 20 74 68 69 73 20 63 61 | 73 65 20 69 73 20 69 74 | this ca|se is it|
|00002f20| 73 65 6c 66 2e 20 20 54 | 68 69 73 20 63 61 75 73 |self. T|his caus|
|00002f30| 65 73 20 74 68 65 20 64 | 72 61 77 53 65 6c 66 3a |es the d|rawSelf:|
|00002f40| 20 6f 66 20 74 68 65 20 | 4d 79 56 69 65 77 20 6f | of the |MyView o|
|00002f50| 62 6a 65 63 74 20 74 6f | 20 62 65 20 65 78 65 63 |bject to| be exec|
|00002f60| 75 74 65 64 2e 20 20 4e | 6f 74 65 20 74 68 61 74 |uted. N|ote that|
|00002f70| 20 77 65 20 64 6f 6e 27 | 74 20 73 65 6e 64 20 61 | we don'|t send a|
|00002f80| 20 6d 65 73 73 61 67 65 | 20 64 69 72 65 63 74 6c | message| directl|
|00002f90| 79 20 74 6f 20 64 72 61 | 77 53 65 6c 66 3a 3a 2c |y to dra|wSelf::,|
|00002fa0| 20 77 65 20 73 69 6d 70 | 6c 65 20 73 69 67 6e 61 | we simp|le signa|
|00002fb0| 6c 20 74 68 65 20 64 69 | 73 70 6c 61 79 20 6d 61 |l the di|splay ma|
|00002fc0| 6e 61 67 65 72 20 74 6f | 20 64 6f 20 74 68 69 73 |nager to| do this|
|00002fd0| 2e 20 20 54 68 69 73 20 | 61 6c 6c 6f 77 20 74 68 |. This |allow th|
|00002fe0| 65 20 77 69 6e 64 6f 77 | 20 6d 61 6e 61 67 65 72 |e window| manager|
|00002ff0| 20 74 6f 20 63 6f 6e 74 | 72 6f 6c 20 74 68 65 20 | to cont|rol the |
|00003000| 77 61 79 20 61 6c 6c 20 | 6f 62 6a 65 63 74 73 20 |way all |objects |
|00003010| 6f 6e 20 74 68 65 20 73 | 63 72 65 65 6e 20 61 72 |on the s|creen ar|
|00003020| 65 20 64 69 73 70 6c 61 | 79 65 64 2e 0d 0d 54 68 |e displa|yed...Th|
|00003030| 65 20 6e 65 78 74 20 73 | 74 65 70 20 69 73 20 74 |e next s|tep is t|
|00003040| 6f 20 63 68 61 6e 67 65 | 20 74 68 65 20 64 72 61 |o change| the dra|
|00003050| 77 53 65 6c 66 3a 3a 20 | 6d 65 74 68 6f 64 20 74 |wSelf:: |method t|
|00003060| 6f 20 62 65 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |o be the| followi|
|00003070| 6e 67 3a 0d fc 00 7e 01 | e6 00 7e 00 0e 02 b0 06 |ng:...~.|..~.....|
|00003080| 30 f7 0d ff 00 16 0a 00 | f7 2d 20 64 72 61 77 53 |0.......|.- drawS|
|00003090| 65 6c 66 3a 28 4e 58 52 | 65 63 74 2a 29 72 20 3a |elf:(NXR|ect*)r :|
|000030a0| 28 69 6e 74 29 63 0d 7b | 0d 20 20 20 20 4e 58 45 |(int)c.{|. NXE|
|000030b0| 72 61 73 65 52 65 63 74 | 28 26 62 6f 75 6e 64 73 |raseRect|(&bounds|
|000030c0| 29 3b 0d 20 20 20 20 50 | 53 73 65 74 67 72 61 79 |);. P|Ssetgray|
|000030d0| 28 4e 58 5f 42 4c 41 43 | 4b 29 3b 0d 20 20 20 20 |(NX_BLAC|K);. |
|000030e0| 50 53 73 65 74 6c 69 6e | 65 77 69 64 74 68 28 35 |PSsetlin|ewidth(5|
|000030f0| 2e 30 29 3b 0d 20 20 20 | 20 50 53 6e 65 77 70 61 |.0);. | PSnewpa|
|00003100| 74 68 28 29 3b 0d 20 20 | 20 20 50 53 6d 6f 76 65 |th();. | PSmove|
|00003110| 74 6f 28 62 6f 75 6e 64 | 73 2e 73 69 7a 65 2e 77 |to(bound|s.size.w|
|00003120| 69 64 74 68 2f 32 2e 30 | 2c 20 31 30 2e 30 29 3b |idth/2.0|, 10.0);|
|00003130| 0d 20 20 20 20 50 53 6c | 69 6e 65 74 6f 28 ff 00 |. PSl|ineto(..|
|00003140| 16 0a 01 f7 6d 79 46 6c | 6f 61 74 2a 31 2e 35 2c |....myFl|oat*1.5,|
|00003150| 20 6d 79 46 6c 6f 61 74 | ff 00 16 0a 00 f7 29 3b | myFloat|......);|
|00003160| 0d 20 20 20 20 50 53 73 | 74 72 6f 6b 65 28 29 3b |. PSs|troke();|
|00003170| 0d 20 20 20 20 72 65 74 | 75 72 6e 20 73 65 6c 66 |. ret|urn self|
|00003180| 3b 0d 7d 0d ff 00 15 0a | 00 f7 0d fc 00 6c 01 e6 |;.}.....|.....l..|
|00003190| 00 6c 00 0e 02 b0 06 30 | f7 ff 00 15 0a 01 f7 53 |.l.....0|.......S|
|000031a0| 74 65 70 20 34 3a 20 53 | 61 76 65 2c 20 63 6f 6d |tep 4: S|ave, com|
|000031b0| 70 69 6c 65 20 61 6e 64 | 20 72 75 6e 2e ff 00 15 |pile and| run....|
|000031c0| 0a 00 f7 0d 00 0d fc 00 | 5a 02 3e 00 5a 02 0e 01 |........|Z.>.Z...|
|000031d0| b0 f7 0d 00 20 fb 00 00 | 00 01 01 00 01 4a 38 2d |.... ...|.....J8-|
|000031e0| 38 5f 53 6c 69 64 65 72 | 2e 32 38 31 38 36 30 2e |8_Slider|.281860.|
|000031f0| 65 70 73 f7 0d 03 7a 0d | fc 00 7e 01 e6 00 7e 02 |eps...z.|..~...~.|
|00003200| 0e 02 b0 06 30 f7 ff 00 | 15 0a 01 f7 46 69 67 75 |....0...|....Figu|
|00003210| 72 65 20 38 2d 36 3a 20 | 44 72 61 77 69 6e 67 20 |re 8-6: |Drawing |
|00003220| 61 20 6c 69 6e 65 20 69 | 6e 20 61 20 43 75 73 74 |a line i|n a Cust|
|00003230| 6f 6d 56 69 65 77 0d ff | 00 15 0c 00 f7 0d 0d 0d |omView..|........|
|00003240| fc 00 47 02 0a 00 47 00 | 0e 01 b0 06 30 f7 ff 00 |..G...G.|....0...|
|00003250| 15 10 01 f7 45 78 61 6d | 70 6c 65 3a 20 43 6f 6e |....Exam|ple: Con|
|00003260| 74 72 6f 6c 6c 69 6e 67 | 20 79 6f 75 72 20 64 72 |trolling| your dr|
|00003270| 61 77 69 6e 67 20 77 69 | 74 68 20 61 20 73 6c 69 |awing wi|th a sli|
|00003280| 64 65 72 0d ff 00 15 0a | 00 f7 fc 00 7e 01 e6 00 |der.....|....~...|
|00003290| 7e 00 0e 02 b0 06 30 f7 | 0d 0d fc 00 6c 01 e6 00 |~.....0.|....l...|
|000032a0| 6c 00 0e 02 b0 06 30 f7 | 54 68 69 73 20 65 78 61 |l.....0.|This exa|
|000032b0| 6d 70 6c 65 20 69 6e 74 | 72 6f 64 75 63 65 73 20 |mple int|roduces |
|000032c0| 6e 6f 20 6e 65 77 20 63 | 6f 6e 63 65 70 74 73 2e |no new c|oncepts.|
|000032d0| 20 20 20 49 74 20 73 69 | 6d 70 6c 79 20 73 68 6f | It si|mply sho|
|000032e0| 77 73 20 68 6f 77 20 66 | 65 61 74 75 72 65 73 20 |ws how f|eatures |
|000032f0| 66 72 6f 6d 20 70 72 65 | 76 69 6f 75 73 20 63 68 |from pre|vious ch|
|00003300| 61 70 74 65 72 73 20 63 | 61 6e 20 62 65 20 69 6e |apters c|an be in|
|00003310| 74 65 67 72 61 74 65 64 | 20 77 69 74 68 20 74 68 |tegrated| with th|
|00003320| 65 20 6d 61 74 65 72 69 | 61 6c 20 69 6e 20 74 68 |e materi|al in th|
|00003330| 69 73 20 63 68 61 70 74 | 65 72 2e 20 20 49 6e 20 |is chapt|er. In |
|00003340| 20 74 68 69 73 20 65 78 | 61 6d 70 6c 65 20 61 20 | this ex|ample a |
|00003350| 73 6c 69 64 65 72 20 77 | 69 6c 6c 20 62 65 20 61 |slider w|ill be a|
|00003360| 64 64 65 64 20 74 6f 20 | 74 68 65 20 70 72 65 76 |dded to |the prev|
|00003370| 69 6f 75 73 20 70 72 6f | 67 72 61 6d 2e 20 20 54 |ious pro|gram. T|
|00003380| 68 65 20 73 6c 69 64 65 | 72 20 77 69 6c 6c 20 63 |he slide|r will c|
|00003390| 61 75 73 65 20 61 6e 20 | 61 63 74 69 6f 6e 20 6d |ause an |action m|
|000033a0| 65 74 68 6f 64 20 74 6f | 20 62 65 20 65 78 65 63 |ethod to| be exec|
|000033b0| 75 74 65 64 2e 20 20 54 | 68 69 73 20 77 69 6c 6c |uted. T|his will|
|000033c0| 20 75 70 64 61 74 65 20 | 74 68 65 20 76 61 6c 75 | update |the valu|
|000033d0| 65 20 6f 66 20 61 6e 20 | 69 6e 73 74 61 6e 63 65 |e of an |instance|
|000033e0| 20 76 61 72 69 61 62 6c | 65 20 61 6e 64 20 74 68 | variabl|e and th|
|000033f0| 65 6e 20 69 6e 73 74 72 | 75 63 74 20 74 68 65 20 |en instr|uct the |
|00003400| 6f 62 6a 65 63 74 20 74 | 6f 20 62 65 20 72 65 64 |object t|o be red|
|00003410| 72 61 77 6e 2e 20 20 54 | 68 65 20 69 6e 73 74 61 |rawn. T|he insta|
|00003420| 6e 63 65 20 76 61 72 69 | 61 62 6c 65 20 77 69 6c |nce vari|able wil|
|00003430| 6c 20 62 65 20 61 20 66 | 6c 6f 61 74 69 6e 67 20 |l be a f|loating |
|00003440| 70 6f 69 6e 74 20 6e 75 | 6d 62 65 72 20 77 68 69 |point nu|mber whi|
|00003450| 63 68 20 77 69 6c 6c 20 | 62 65 20 75 73 65 64 20 |ch will |be used |
|00003460| 74 6f 20 64 72 61 77 20 | 74 68 65 20 6c 69 6e 65 |to draw |the line|
|00003470| 20 69 6e 20 74 68 65 20 | 70 72 65 76 69 6f 75 73 | in the |previous|
|00003480| 20 65 78 61 6d 70 6c 65 | 2e 0d 0d 54 68 69 73 20 | example|...This |
|00003490| 70 72 6f 67 72 61 6d 20 | 72 65 71 75 69 72 65 73 |program |requires|
|000034a0| 20 6f 6e 6c 79 20 61 20 | 66 65 77 20 73 6d 61 6c | only a |few smal|
|000034b0| 6c 20 63 68 61 6e 67 65 | 73 20 74 6f 20 74 68 65 |l change|s to the|
|000034c0| 20 70 72 6f 67 72 61 6d | 20 74 68 61 74 20 77 61 | program| that wa|
|000034d0| 73 20 63 72 65 61 74 65 | 64 20 69 6e 20 74 68 65 |s create|d in the|
|000034e0| 20 70 72 65 76 69 6f 75 | 73 20 65 78 61 6d 70 6c | previou|s exampl|
|000034f0| 65 2e 0d 0d ff 00 15 0a | 01 f7 53 74 65 70 20 31 |e.......|..Step 1|
|00003500| 3a 20 20 41 64 64 20 61 | 20 73 6c 69 64 65 72 20 |: Add a| slider |
|00003510| 74 6f 20 74 68 65 20 69 | 6e 74 65 72 66 61 63 65 |to the i|nterface|
|00003520| 20 62 75 69 6c 64 65 72 | ff 00 15 0a 00 f7 0d 46 | builder|.......F|
|00003530| 69 72 73 74 20 77 65 20 | 61 64 64 20 74 77 6f 20 |irst we |add two |
|00003540| 6c 69 6e 65 73 20 28 69 | 6e 20 62 6f 6c 64 29 20 |lines (i|n bold) |
|00003550| 74 6f 20 74 68 65 20 4d | 79 56 69 65 77 2e 68 20 |to the M|yView.h |
|00003560| 66 69 6c 65 20 61 73 20 | 66 6f 6c 6c 6f 77 73 3a |file as |follows:|
|00003570| 0d 00 aa fc 00 6d 01 e6 | 00 6d 00 0e 02 b0 06 30 |.....m..|.m.....0|
|00003580| f7 49 66 20 61 6c 6c 20 | 67 6f 65 73 20 77 65 6c |.If all |goes wel|
|00003590| 6c 20 74 68 65 20 72 65 | 73 75 6c 74 20 77 69 6c |l the re|sult wil|
|000035a0| 6c 20 62 65 20 61 20 6c | 69 6e 65 20 74 68 61 74 |l be a l|ine that|
|000035b0| 20 68 61 73 20 6f 6e 65 | 20 70 6f 69 6e 74 20 66 | has one| point f|
|000035c0| 69 78 65 64 20 61 6e 64 | 20 74 68 65 20 6f 74 68 |ixed and| the oth|
|000035d0| 65 72 20 70 6f 69 6e 74 | 20 74 68 61 74 20 6d 6f |er point| that mo|
|000035e0| 76 65 73 20 61 73 20 74 | 68 65 20 73 6c 69 64 65 |ves as t|he slide|
|000035f0| 72 20 6d 6f 76 65 73 2e | 0d fc 00 7e 01 e6 00 7e |r moves.|...~...~|
|00003600| 00 0e 02 b0 06 30 f7 0d | fc 00 48 02 0a 00 48 00 |.....0..|..H...H.|
|00003610| 0e 01 b0 06 30 f7 ff 00 | 15 16 01 f7 0d 02 0c 0d |....0...|........|
|00003620| 54 68 65 20 6e 65 78 74 | 20 6c 69 6e 65 3a 0d 0d |The next| line:..|
|00003630| fc 00 a1 01 e6 00 a1 00 | 0e 03 60 f7 ff 00 16 0a |........|..`.....|
|00003640| 00 f7 20 50 53 72 6f 74 | 61 74 65 28 2d 6d 79 46 |.. PSrot|ate(-myF|
|00003650| 6c 6f 61 74 29 3b 0d 20 | 20 20 20 0d fc 00 6d 01 |loat);. | ...m.|
|00003660| e6 00 6d 00 0e f7 ff 00 | 15 0a 00 f7 57 69 6c 6c |..m.....|....Will|
|00003670| 20 75 73 65 20 74 68 65 | 20 76 61 6c 75 65 20 6f | use the| value o|
|00003680| 66 20 74 68 65 20 73 6c | 69 64 65 72 20 74 6f 20 |f the sl|ider to |
|00003690| 72 6f 74 61 74 65 20 74 | 68 65 20 63 6f 6f 72 64 |rotate t|he coord|
|000036a0| 69 6e 61 74 65 20 73 79 | 73 74 65 6d 2e 20 20 49 |inate sy|stem. I|
|000036b0| 6e 20 74 68 69 73 20 63 | 61 73 65 20 77 65 20 6d |n this c|ase we m|
|000036c0| 75 73 74 20 67 6f 20 62 | 61 63 6b 20 69 6e 74 6f |ust go b|ack into|
|000036d0| 20 74 68 65 20 49 6e 74 | 65 72 66 61 63 65 20 42 | the Int|erface B|
|000036e0| 75 69 6c 64 65 72 20 61 | 6e 64 20 63 68 61 6e 67 |uilder a|nd chang|
|000036f0| 65 20 74 68 65 20 64 65 | 66 61 75 6c 74 20 76 61 |e the de|fault va|
|00003700| 6c 75 65 73 20 6f 66 20 | 74 68 65 20 73 6c 69 64 |lues of |the slid|
|00003710| 65 72 20 66 72 6f 6d 20 | 2d 39 30 20 74 6f 20 39 |er from |-90 to 9|
|00003720| 30 20 77 69 74 68 20 61 | 20 64 65 66 61 75 6c 74 |0 with a| default|
|00003730| 20 76 61 6c 75 65 20 6f | 66 20 30 2e 30 2e 20 20 | value o|f 0.0. |
|00003740| 49 74 20 69 73 20 61 6c | 73 6f 20 61 70 70 72 6f |It is al|so appro|
|00003750| 70 72 69 61 74 65 20 74 | 6f 20 64 72 61 67 20 74 |priate t|o drag t|
|00003760| 65 78 74 20 6f 62 6a 65 | 63 74 73 20 66 72 6f 6d |ext obje|cts from|
|00003770| 20 74 68 65 20 49 6e 74 | 65 72 66 61 63 65 20 42 | the Int|erface B|
|00003780| 75 69 6c 64 65 72 20 50 | 61 6c 65 74 74 65 20 6c |uilder P|alette l|
|00003790| 61 62 65 6c 65 64 20 22 | 54 69 74 6c 65 22 20 69 |abeled "|Title" i|
|000037a0| 6e 74 6f 20 74 68 65 20 | 6d 61 69 6e 20 77 69 6e |nto the |main win|
|000037b0| 64 6f 77 20 61 6e 64 20 | 6c 61 62 65 6c 20 74 68 |dow and |label th|
|000037c0| 65 20 6c 69 6d 69 74 73 | 20 6f 66 20 74 68 65 20 |e limits| of the |
|000037d0| 73 6c 69 64 65 72 2e 20 | 20 54 68 65 20 72 65 73 |slider. | The res|
|000037e0| 75 6c 74 20 6d 69 67 68 | 74 20 6c 6f 6f 6b 20 6c |ult migh|t look l|
|000037f0| 69 6b 65 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |ike the |followin|
|00003800| 67 20 77 69 6e 64 6f 77 | 20 77 68 65 6e 20 74 68 |g window| when th|
|00003810| 65 20 70 72 6f 67 72 61 | 6d 20 72 75 6e 73 3a 0d |e progra|m runs:.|
|00003820| fc 00 6d 01 e6 00 6d 02 | 0e f7 0d 00 07 ff 00 16 |..m...m.|........|
|00003830| 0a 00 f7 0d 00 20 fb 00 | 00 00 01 00 f0 01 01 2d |..... ..|.......-|
|00003840| 38 2d 39 5f 47 61 75 67 | 65 2e 34 32 34 31 32 36 |8-9_Gaug|e.424126|
|00003850| 2e 65 70 73 f7 0d 00 11 | fc 00 6d 01 e6 00 6d 02 |.eps....|..m...m.|
|00003860| 0e f7 ff 00 16 0a 00 f7 | 0d 02 9c ff 00 15 10 01 |........|........|
|00003870| f7 fc 00 a1 01 e6 00 a1 | 00 0e 03 60 f7 53 61 6d |........|...`.Sam|
|00003880| 70 6c 65 20 50 6f 73 74 | 53 63 72 69 70 74 20 47 |ple Post|Script G|
|00003890| 72 61 70 68 69 63 73 20 | 43 6f 6d 6d 61 6e 64 73 |raphics |Commands|
|000038a0| ff 00 15 0e 01 f7 0d fc | 00 7e 02 3e 00 7e 00 0e |........|.~.>.~..|
|000038b0| 01 b0 f7 0d fc 00 5a 02 | 49 00 5a 00 0e 04 a8 f7 |......Z.|I.Z.....|
|000038c0| ff 00 15 0a 01 f7 43 6f | 6d 6d 61 6e 64 09 44 65 |......Co|mmand.De|
|000038d0| 73 63 72 69 70 74 69 6f | 6e ff 00 15 0a 00 f7 0d |scriptio|n.......|
|000038e0| ff 00 16 0a 00 f7 0d 50 | 53 6d 6f 76 65 74 6f 28 |.......P|Smoveto(|
|000038f0| 78 2c 20 79 29 3b 09 ff | 00 15 0a 00 f7 6d 6f 76 |x, y);..|.....mov|
|00003900| 65 20 74 68 65 20 70 65 | 6e 20 74 6f 20 74 68 65 |e the pe|n to the|
|00003910| 20 69 6e 64 69 63 61 74 | 65 64 20 70 6f 73 69 74 | indicat|ed posit|
|00003920| 69 6f 6e 2e 0d ff 00 16 | 0a 00 f7 50 53 6c 69 6e |ion.....|...PSlin|
|00003930| 65 74 6f 28 78 2c 20 79 | 29 3b ff 00 15 0a 01 f7 |eto(x, y|);......|
|00003940| 09 ff 00 15 0a 00 f7 64 | 72 61 77 20 61 20 6c 69 |.......d|raw a li|
|00003950| 6e 65 20 66 72 6f 6d 20 | 74 6f 20 74 68 65 20 63 |ne from |to the c|
|00003960| 75 72 72 65 6e 74 20 70 | 6f 73 69 74 69 6f 6e 20 |urrent p|osition |
|00003970| 74 6f 20 28 78 2c 79 29 | 0d ff 00 16 0a 00 f7 50 |to (x,y)|.......P|
|00003980| 53 72 6c 69 6e 65 74 6f | 28 78 2c 20 79 29 3b ff |Srlineto|(x, y);.|
|00003990| 00 15 0a 01 f7 09 ff 00 | 15 0a 00 f7 64 72 61 77 |........|....draw|
|000039a0| 20 61 20 6c 69 6e 65 20 | 62 79 20 61 64 64 69 6e | a line |by addin|
|000039b0| 67 20 28 78 2c 79 29 20 | 74 6f 20 74 68 65 20 63 |g (x,y) |to the c|
|000039c0| 75 72 72 65 6e 74 20 70 | 6f 73 69 74 69 6f 6e ff |urrent p|osition.|
|000039d0| 00 16 0a 00 f7 0d 0d 50 | 53 74 72 61 6e 73 6c 61 |.......P|Stransla|
|000039e0| 74 65 28 78 2c 20 79 29 | 3b 09 ff 00 15 0a 00 f7 |te(x, y)|;.......|
|000039f0| 74 72 61 6e 73 6c 61 74 | 65 20 74 68 65 20 63 6f |translat|e the co|
|00003a00| 6f 72 64 69 6e 61 74 65 | 20 73 79 73 74 65 6d 0d |ordinate| system.|
|00003a10| ff 00 16 0a 00 f7 50 53 | 72 6f 74 61 74 65 28 61 |......PS|rotate(a|
|00003a20| 6e 67 6c 65 29 3b ff 00 | 15 0a 00 f7 09 72 6f 74 |ngle);..|.....rot|
|00003a30| 61 74 65 20 74 68 65 20 | 63 6f 6f 72 64 69 6e 61 |ate the |coordina|
|00003a40| 74 65 20 73 79 73 74 65 | 6d 20 63 6f 75 6e 74 65 |te syste|m counte|
|00003a50| 72 2d 63 6c 6f 63 6b 77 | 69 73 65 ff 00 16 0a 00 |r-clockw|ise.....|
|00003a60| f7 0d 50 53 73 63 61 6c | 65 28 78 6d 61 67 2c 20 |..PSscal|e(xmag, |
|00003a70| 79 6d 61 67 29 3b 09 ff | 00 15 0a 00 f7 73 63 61 |ymag);..|.....sca|
|00003a80| 6c 65 20 74 68 65 20 63 | 6f 6f 72 64 69 6e 61 74 |le the c|oordinat|
|00003a90| 65 20 73 79 73 74 65 6d | ff 00 16 0a 00 f7 0d fc |e system|........|
|00003aa0| 00 5a 02 49 00 5a 00 0e | 01 f0 0c f7 ff 00 15 08 |.Z.I.Z..|........|
|00003ab0| 00 f7 09 45 78 61 6d 70 | 6c 65 20 20 ff 00 16 08 |...Examp|le ....|
|00003ac0| 00 f7 50 53 73 63 61 6c | 65 28 32 2e 30 2c 20 32 |..PSscal|e(2.0, 2|
|00003ad0| 2e 30 29 ff 00 15 08 00 | f7 3b 20 20 77 6f 75 6c |.0).....|.; woul|
|00003ae0| 64 20 6d 61 6b 65 20 74 | 68 65 20 6f 62 6a 65 63 |d make t|he objec|
|00003af0| 74 73 20 74 77 69 63 65 | 20 61 73 20 62 69 67 2e |ts twice| as big.|
|00003b00| ff 00 15 0a 00 f7 0d 03 | 07 ff 00 16 0a 00 f7 fc |........|........|
|00003b10| 00 5a 02 49 00 5a 00 0e | 04 a8 f7 0d 50 53 61 72 |.Z.I.Z..|....PSar|
|00003b20| 63 28 78 2c 79 2c 72 61 | 64 69 75 73 2c 61 6e 67 |c(x,y,ra|dius,ang|
|00003b30| 6c 65 31 2c 61 6e 67 6c | 65 32 29 3b 09 ff 00 15 |le1,angl|e2);....|
|00003b40| 0a 00 f7 64 72 61 77 20 | 61 6e 20 61 72 63 ff 00 |...draw |an arc..|
|00003b50| 16 0a 00 f7 0d 50 53 63 | 75 72 76 65 74 6f 28 78 |.....PSc|urveto(x|
|00003b60| 31 2c 79 31 2c 78 32 2c | 79 32 2c 78 33 2c 79 33 |1,y1,x2,|y2,x3,y3|
|00003b70| 2c 2e 2e 2e 29 3b 09 ff | 00 15 0a 00 f7 64 72 61 |,...);..|.....dra|
|00003b80| 77 20 61 20 73 6d 6f 6f | 74 68 20 63 75 72 76 65 |w a smoo|th curve|
|00003b90| 20 63 6f 6e 6e 65 63 74 | 69 6e 67 20 74 68 65 20 | connect|ing the |
|00003ba0| 70 6f 69 6e 74 73 0d ff | 00 16 0a 00 f7 0d 50 53 |points..|......PS|
|00003bb0| 73 65 6c 65 63 74 66 6f | 6e 74 28 22 48 65 6c 76 |selectfo|nt("Helv|
|00003bc0| 65 74 69 63 61 22 2c 20 | 31 36 2e 30 29 3b ff 00 |etica", |16.0);..|
|00003bd0| 15 0a 00 f7 09 73 65 6c | 65 63 74 20 31 36 20 70 |.....sel|ect 16 p|
|00003be0| 6f 69 6e 74 20 48 65 6c | 76 65 74 69 63 61 20 66 |oint Hel|vetica f|
|00003bf0| 6f 6e 74 0d 50 53 73 68 | 6f 77 28 22 48 65 6c 6c |ont.PSsh|ow("Hell|
|00003c00| 6f 20 57 6f 72 6c 64 22 | 29 09 64 72 61 77 73 20 |o World"|).draws |
|00003c10| 74 68 65 20 77 6f 72 64 | 73 20 61 74 20 74 68 65 |the word|s at the|
|00003c20| 20 63 75 72 72 65 6e 74 | 20 70 6f 73 69 74 69 6f | current| positio|
|00003c30| 6e 0d ff 00 16 0a 00 f7 | 50 53 73 65 74 67 72 61 |n.......|PSsetgra|
|00003c40| 79 28 4e 58 5f 42 4c 41 | 43 4b 29 3b 09 ff 00 15 |y(NX_BLA|CK);....|
|00003c50| 0a 00 f7 73 65 74 20 74 | 68 65 20 67 72 61 79 20 |...set t|he gray |
|00003c60| 6c 65 76 65 6c 20 75 73 | 65 64 ff 00 16 0a 00 f7 |level us|ed......|
|00003c70| 0d fc 00 5a 02 3e 00 5a | 00 0e 01 f0 08 f7 ff 00 |...Z.>.Z|........|
|00003c80| 15 08 00 f7 09 49 6e 20 | 43 20 77 65 20 75 73 65 |.....In |C we use|
|00003c90| ff 00 16 08 00 f7 20 4e | 58 5f 57 48 49 54 45 2c |...... N|X_WHITE,|
|00003ca0| 20 4e 58 5f 4c 54 47 52 | 41 59 2c 20 61 6e 64 20 | NX_LTGR|AY, and |
|00003cb0| 4e 58 5f 44 4b 47 52 41 | 59 2e 0d ff 00 15 08 00 |NX_DKGRA|Y.......|
|00003cc0| f7 09 49 6e 20 70 75 72 | 65 20 50 6f 73 74 53 63 |..In pur|e PostSc|
|00003cd0| 72 69 70 74 20 75 73 65 | 20 61 20 66 6c 6f 61 74 |ript use| a float|
|00003ce0| 69 6e 67 20 70 6f 69 6e | 74 20 6e 75 6d 62 65 72 |ing poin|t number|
|00003cf0| 20 66 72 6f 6d 20 30 2e | 30 20 74 6f 20 31 2e 30 | from 0.|0 to 1.0|
|00003d00| 20 74 6f 20 73 65 74 20 | 74 68 65 20 67 72 61 79 | to set |the gray|
|00003d10| 3a 20 77 68 69 74 65 20 | 69 73 31 2e 30 20 61 6e |: white |is1.0 an|
|00003d20| 64 20 62 6c 61 63 6b 20 | 69 73 20 30 2e 30 ff 00 |d black |is 0.0..|
|00003d30| 16 08 00 f7 2e 0d fc 00 | 5a 02 49 00 5a 00 0e 04 |........|Z.I.Z...|
|00003d40| a8 f7 ff 00 16 0a 00 f7 | 50 53 66 69 6c 6c 28 29 |........|PSfill()|
|00003d50| 3b 09 ff 00 15 0a 00 f7 | 66 69 6c 6c 20 74 68 65 |;.......|fill the|
|00003d60| 20 63 75 72 72 65 6e 74 | 20 6f 62 6a 65 63 74 20 | current| object |
|00003d70| 77 69 74 68 20 74 68 65 | 20 73 65 6c 65 63 74 65 |with the| selecte|
|00003d80| 64 20 67 72 61 79 ff 00 | 16 0a 00 f7 0d 50 53 73 |d gray..|.....PSs|
|00003d90| 65 74 6c 69 6e 65 77 69 | 64 74 68 28 77 69 64 74 |etlinewi|dth(widt|
|00003da0| 68 29 3b 09 ff 00 15 0a | 00 f7 73 65 74 20 74 68 |h);.....|..set th|
|00003db0| 65 20 63 75 72 72 65 6e | 74 20 6c 69 6e 65 20 77 |e curren|t line w|
|00003dc0| 69 64 74 68 ff 00 16 0a | 00 f7 0d 50 53 73 74 72 |idth....|...PSstr|
|00003dd0| 6f 6b 65 28 29 3b 09 ff | 00 15 0a 00 f7 64 72 61 |oke();..|.....dra|
|00003de0| 77 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 70 61 |w the cu|rrent pa|
|00003df0| 74 68 20 77 69 74 68 20 | 74 68 65 20 63 75 72 72 |th with |the curr|
|00003e00| 65 6e 74 20 67 72 61 79 | ff 00 16 0a 00 f7 0d 0d |ent gray|........|
|00003e10| 04 32 0d fc 00 7e 01 e6 | 00 7e 00 0e 02 b0 06 30 |.2...~..|.~.....0|
|00003e20| f7 0d fc 00 90 01 e6 00 | 90 00 0e 02 b0 06 30 f7 |........|......0.|
|00003e30| ff 00 16 0a 00 f7 23 69 | 6d 70 6f 72 74 20 3c 61 |......#i|mport <a|
|00003e40| 70 70 6b 69 74 2f 56 69 | 65 77 2e 68 3e 0d 0d 40 |ppkit/Vi|ew.h>..@|
|00003e50| 69 6e 74 65 72 66 61 63 | 65 20 4d 79 56 69 65 77 |interfac|e MyView|
|00003e60| 3a 56 69 65 77 0d 7b 0d | 20 20 20 ff 00 16 0a 01 |:View.{.| .....|
|00003e70| f7 66 6c 6f 61 74 20 6d | 79 46 6c 6f 61 74 3b ff |.float m|yFloat;.|
|00003e80| 00 16 0a 00 f7 0d 7d 0d | 0d ff 00 16 0a 01 f7 2d |......}.|.......-|
|00003e90| 20 6d 79 53 6c 69 64 65 | 72 3a 73 65 6e 64 65 72 | mySlide|r:sender|
|00003ea0| 3b ff 00 16 0a 00 f7 0d | 0d 40 65 6e 64 0d fc 00 |;.......|.@end...|
|00003eb0| 7e 01 e6 00 7e 00 0e 02 | b0 06 30 f7 ff 00 15 0a |~...~...|..0.....|
|00003ec0| 00 f7 0d fc 00 6c 01 e6 | 00 6c 00 0e 02 b0 06 30 |.....l..|.l.....0|
|00003ed0| f7 53 61 76 65 20 74 68 | 65 20 66 69 6c 65 20 61 |.Save th|e file a|
|00003ee0| 66 74 65 72 20 79 6f 75 | 20 68 61 76 65 20 6d 61 |fter you| have ma|
|00003ef0| 64 65 20 74 68 65 73 65 | 20 63 68 61 6e 67 65 73 |de these| changes|
|00003f00| 2e 20 20 54 68 65 20 68 | 65 61 64 65 72 20 66 69 |. The h|eader fi|
|00003f10| 6c 65 20 69 73 20 75 73 | 65 64 20 69 6e 20 74 68 |le is us|ed in th|
|00003f20| 65 20 6e 65 78 74 20 73 | 74 65 70 2e 0d 0d ff 00 |e next s|tep.....|
|00003f30| 15 0a 01 f7 53 74 65 70 | 20 32 3a 20 20 41 64 64 |....Step| 2: Add|
|00003f40| 20 61 20 73 6c 69 64 65 | 72 20 74 6f 20 74 68 65 | a slide|r to the|
|00003f50| 20 49 6e 74 65 72 66 61 | 63 65 20 42 75 69 6c 64 | Interfa|ce Build|
|00003f60| 65 72 20 61 6e 64 20 63 | 6f 6e 6e 65 63 74 20 69 |er and c|onnect i|
|00003f70| 74 20 75 70 20 74 6f 20 | 74 68 65 20 6d 79 53 6c |t up to |the mySl|
|00003f80| 69 64 65 72 20 61 63 74 | 69 6f 6e 2e ff 00 15 0a |ider act|ion.....|
|00003f90| 00 f7 20 20 53 74 61 72 | 74 20 75 70 20 69 6e 74 |.. Star|t up int|
|00003fa0| 65 72 66 61 63 65 20 62 | 75 69 6c 64 65 72 20 61 |erface b|uilder a|
|00003fb0| 6e 64 20 61 64 64 20 61 | 20 73 6c 69 64 65 72 20 |nd add a| slider |
|00003fc0| 74 6f 20 74 68 65 20 6d | 61 69 6e 20 77 69 6e 64 |to the m|ain wind|
|00003fd0| 6f 77 20 6a 75 73 74 20 | 62 65 6c 6f 77 20 74 68 |ow just |below th|
|00003fe0| 65 20 4d 79 56 69 65 77 | 20 6f 62 6a 65 63 74 2e |e MyView| object.|
|00003ff0| 20 20 53 65 74 20 74 68 | 65 20 6d 69 6e 69 6d 75 | Set th|e minimu|
|00004000| 6d 20 61 6e 64 20 6d 61 | 78 69 6d 75 6d 20 76 61 |m and ma|ximum va|
|00004010| 6c 75 65 73 20 6f 66 20 | 74 68 65 20 73 6c 69 64 |lues of |the slid|
|00004020| 65 72 20 74 6f 20 72 61 | 6e 67 65 20 66 72 6f 6d |er to ra|nge from|
|00004030| 20 30 20 74 6f 20 33 30 | 30 2e 20 20 54 68 65 20 | 0 to 30|0. The |
|00004040| 64 65 66 61 75 6c 74 20 | 76 61 6c 75 65 20 73 68 |default |value sh|
|00004050| 6f 75 6c 64 20 62 65 20 | 7a 65 72 6f 2e 20 20 46 |ould be |zero. F|
|00004060| 72 6f 6d 20 74 68 65 20 | 63 6c 61 73 73 20 65 64 |rom the |class ed|
|00004070| 69 74 6f 72 2c 20 77 68 | 69 6c 65 20 74 68 65 20 |itor, wh|ile the |
|00004080| ff 00 16 0a 00 f7 4d 79 | 56 69 65 77 ff 00 15 0a |......My|View....|
|00004090| 00 f7 20 63 6c 61 73 73 | 20 69 73 20 73 65 6c 65 |.. class| is sele|
|000040a0| 63 74 65 64 20 75 73 65 | 20 74 68 65 20 22 70 61 |cted use| the "pa|
|000040b0| 72 73 65 22 20 66 75 6e | 63 74 69 6f 6e 20 66 72 |rse" fun|ction fr|
|000040c0| 6f 6d 20 74 68 65 20 6f | 70 65 72 61 74 69 6f 6e |om the o|peration|
|000040d0| 73 20 70 6f 70 2d 75 70 | 20 6d 65 6e 75 20 2e 20 |s pop-up| menu . |
|000040e0| 20 49 74 20 77 69 6c 6c | 20 74 65 6c 6c 20 79 6f | It will| tell yo|
|000040f0| 75 20 74 68 61 74 20 74 | 68 65 20 6d 65 74 68 6f |u that t|he metho|
|00004100| 64 73 20 61 72 65 20 64 | 69 66 66 65 72 65 6e 74 |ds are d|ifferent|
|00004110| 20 61 6e 64 20 61 73 6b | 20 79 6f 75 20 69 66 20 | and ask| you if |
|00004120| 79 6f 75 20 77 61 6e 74 | 20 74 6f 20 72 65 70 6c |you want| to repl|
|00004130| 61 63 65 20 74 68 65 6d | 2e 20 20 45 6e 74 65 72 |ace them|. Enter|
|00004140| 20 79 65 73 2e 20 20 59 | 6f 75 20 63 61 6e 20 6e | yes. Y|ou can n|
|00004150| 6f 77 20 63 6f 6e 6e 65 | 63 74 20 74 68 65 20 73 |ow conne|ct the s|
|00004160| 6c 69 64 65 72 20 74 6f | 20 74 68 65 20 6d 79 53 |lider to| the myS|
|00004170| 6c 69 64 65 72 20 61 63 | 74 69 6f 6e 20 6d 65 74 |lider ac|tion met|
|00004180| 68 6f 64 20 62 79 20 70 | 6f 69 6e 74 69 6e 67 20 |hod by p|ointing |
|00004190| 74 6f 20 74 68 65 20 73 | 6c 69 64 65 72 20 61 6e |to the s|lider an|
|000041a0| 64 20 63 6f 6e 74 72 6f | 6c 2d 64 72 61 67 67 69 |d contro|l-draggi|
|000041b0| 6e 67 20 61 20 6c 69 6e | 65 20 74 6f 20 74 68 65 |ng a lin|e to the|
|000041c0| 20 4d 79 56 69 65 77 20 | 6f 62 6a 65 63 74 2e 20 | MyView |object. |
|000041d0| 20 53 65 6c 65 63 74 20 | 22 4f 4b 22 20 69 6e 20 | Select |"OK" in |
|000041e0| 74 68 65 20 69 6e 73 70 | 65 63 74 6f 72 20 77 69 |the insp|ector wi|
|000041f0| 6e 64 6f 77 20 61 6e 64 | 20 76 65 72 69 66 79 20 |ndow and| verify |
|00004200| 74 68 61 74 20 61 20 63 | 6f 6e 6e 65 63 74 69 6f |that a c|onnectio|
|00004210| 6e 20 68 61 73 20 62 65 | 65 6e 20 6d 61 64 65 2e |n has be|en made.|
|00004220| 20 20 44 6f 20 61 20 73 | 61 76 65 20 66 72 6f 6d | Do a s|ave from|
|00004230| 20 69 6e 74 65 72 66 61 | 63 65 20 62 75 69 6c 64 | interfa|ce build|
|00004240| 65 72 2e 0d 03 21 ff 00 | 15 0a 01 f7 46 69 67 75 |er...!..|....Figu|
|00004250| 72 65 20 38 2d 37 3a 20 | 43 6f 6e 74 72 6f 6c 6c |re 8-7: |Controll|
|00004260| 69 6e 67 20 73 6f 6d 65 | 20 61 73 70 65 63 74 20 |ing some| aspect |
|00004270| 6f 66 20 64 72 61 77 69 | 6e 67 20 77 69 74 68 20 |of drawi|ng with |
|00004280| 61 20 73 6c 69 64 65 72 | 0d 0d fc 00 49 02 3e 00 |a slider|....I.>.|
|00004290| 49 00 0e 01 b0 f7 ff 00 | 15 10 01 f7 45 78 61 6d |I.......|....Exam|
|000042a0| 70 6c 65 3a 20 43 6f 6e | 74 72 6f 6c 6c 69 6e 67 |ple: Con|trolling|
|000042b0| 20 79 6f 75 72 20 64 72 | 61 77 69 6e 67 20 77 69 | your dr|awing wi|
|000042c0| 74 68 20 61 20 73 6c 69 | 64 65 72 0d 0d fc 00 6d |th a sli|der....m|
|000042d0| 01 e6 00 6d 00 0e f7 ff | 00 15 0a 00 f7 41 6c 74 |...m....|.....Alt|
|000042e0| 68 6f 75 67 68 20 74 68 | 65 20 70 72 65 76 69 6f |hough th|e previo|
|000042f0| 75 73 20 65 78 61 6d 70 | 6c 65 20 69 73 20 73 69 |us examp|le is si|
|00004300| 6d 70 6c 65 20 69 6e 20 | 74 68 61 74 20 69 74 20 |mple in |that it |
|00004310| 61 64 64 20 6f 6e 6c 79 | 20 63 68 61 6e 67 65 73 |add only| changes|
|00004320| 20 74 68 65 20 64 72 61 | 77 53 65 6c 66 3a 3a 20 | the dra|wSelf:: |
|00004330| 69 6e 20 6f 6e 65 20 6c | 69 6e 65 20 66 72 6f 6d |in one l|ine from|
|00004340| 20 74 68 65 20 6f 72 69 | 67 69 6e 61 6c 20 65 78 | the ori|ginal ex|
|00004350| 61 6d 70 6c 65 2c 20 69 | 74 20 69 73 20 6e 6f 74 |ample, i|t is not|
|00004360| 20 74 6f 6f 20 75 73 65 | 66 75 6c 20 69 6e 20 69 | too use|ful in i|
|00004370| 74 73 20 70 72 65 73 65 | 6e 74 20 66 6f 72 6d 2e |ts prese|nt form.|
|00004380| 20 20 42 79 20 6d 6f 64 | 69 66 79 69 6e 67 20 74 | By mod|ifying t|
|00004390| 68 65 20 64 72 61 77 53 | 65 6c 66 3a 3a 20 6d 65 |he drawS|elf:: me|
|000043a0| 74 68 6f 64 20 6f 66 20 | 74 68 69 73 20 6f 62 6a |thod of |this obj|
|000043b0| 65 63 74 20 77 65 20 77 | 69 6c 6c 20 62 65 20 61 |ect we w|ill be a|
|000043c0| 62 6c 65 20 74 6f 20 63 | 72 65 61 74 65 20 61 20 |ble to c|reate a |
|000043d0| 73 6f 6d 65 77 68 61 74 | 20 75 73 65 66 75 6c 20 |somewhat| useful |
|000043e0| 67 61 75 67 65 2e 20 20 | 54 68 65 72 65 20 61 72 |gauge. |There ar|
|000043f0| 65 20 74 77 6f 20 76 65 | 72 79 20 70 6f 77 65 72 |e two ve|ry power|
|00004400| 66 75 6c 20 50 6f 73 74 | 53 63 72 69 70 74 20 6f |ful Post|Script o|
|00004410| 70 65 72 61 74 69 6f 6e | 73 20 74 68 61 74 20 77 |peration|s that w|
|00004420| 69 6c 6c 20 6d 61 6b 65 | 20 74 68 69 73 20 74 61 |ill make| this ta|
|00004430| 73 6b 20 76 65 72 79 20 | 65 61 73 79 2e 20 20 54 |sk very |easy. T|
|00004440| 68 65 20 66 69 72 73 74 | 20 77 69 6c 6c 20 61 6c |he first| will al|
|00004450| 6c 6f 77 20 75 73 20 74 | 6f 20 74 72 61 6e 73 6c |low us t|o transl|
|00004460| 61 74 65 20 74 68 65 20 | 6f 72 69 67 69 6e 20 6f |ate the |origin o|
|00004470| 66 20 74 68 65 20 63 6f | 6f 72 64 69 6e 61 74 65 |f the co|ordinate|
|00004480| 20 73 79 73 74 65 6d 20 | 74 6f 20 74 68 65 20 63 | system |to the c|
|00004490| 65 6e 74 65 72 20 6f 66 | 20 74 68 65 20 67 61 75 |enter of| the gau|
|000044a0| 67 65 2e 20 20 54 68 65 | 20 73 65 63 6f 6e 64 20 |ge. The| second |
|000044b0| 77 69 6c 6c 20 61 6c 6c | 6f 77 20 75 73 20 74 6f |will all|ow us to|
|000044c0| 20 73 69 6d 70 6c 79 20 | 64 72 61 77 20 61 6e 20 | simply |draw an |
|000044d0| 61 72 72 6f 77 20 61 6e | 64 20 74 68 65 6e 20 72 |arrow an|d then r|
|000044e0| 6f 74 61 74 65 20 74 68 | 65 20 63 6f 6f 72 64 69 |otate th|e coordi|
|000044f0| 6e 61 74 65 20 73 79 73 | 74 65 6d 20 74 6f 20 67 |nate sys|tem to g|
|00004500| 69 76 65 20 74 68 65 20 | 61 70 70 65 61 72 61 6e |ive the |appearan|
|00004510| 63 65 20 74 68 61 74 20 | 74 68 65 20 67 61 75 67 |ce that |the gaug|
|00004520| 65 20 69 73 20 72 6f 74 | 61 74 69 6e 67 2e 20 20 |e is rot|ating. |
|00004530| 54 68 65 20 6e 65 77 20 | 64 72 61 77 53 65 6c 66 |The new |drawSelf|
|00004540| 3a 3a 20 6d 65 74 68 6f | 64 20 77 69 6c 6c 20 74 |:: metho|d will t|
|00004550| 68 65 6e 20 62 65 20 74 | 68 65 20 66 6f 6c 6c 6f |hen be t|he follo|
|00004560| 77 69 6e 67 3a 0d 0d 01 | fa fc 00 8f 01 e6 00 8f |wing:...|........|
|00004570| 00 0e f7 ff 00 16 0a 00 | f7 23 64 65 66 69 6e 65 |........|.#define|
|00004580| 20 41 52 52 4f 57 5f 4c | 45 4e 47 54 48 20 32 30 | ARROW_L|ENGTH 20|
|00004590| 2e 30 ff 00 15 0a 00 f7 | 0d 0d fc 00 a1 01 e6 00 |.0......|........|
|000045a0| a1 00 0e 03 60 f7 ff 00 | 16 0a 00 f7 2d 20 64 72 |....`...|....- dr|
|000045b0| 61 77 53 65 6c 66 3a 28 | 4e 58 52 65 63 74 2a 29 |awSelf:(|NXRect*)|
|000045c0| 72 20 3a 28 69 6e 74 29 | 63 0d 7b 0d 20 20 20 20 |r :(int)|c.{. |
|000045d0| 4e 58 45 72 61 73 65 52 | 65 63 74 28 26 62 6f 75 |NXEraseR|ect(&bou|
|000045e0| 6e 64 73 29 3b 0d 20 20 | 20 20 50 53 73 65 74 67 |nds);. | PSsetg|
|000045f0| 72 61 79 28 4e 58 5f 42 | 4c 41 43 4b 29 3b 0d 20 |ray(NX_B|LACK);. |
|00004600| 20 20 20 50 53 73 65 74 | 6c 69 6e 65 77 69 64 74 | PSset|linewidt|
|00004610| 68 28 31 30 2e 30 29 3b | 0d 20 20 20 20 50 53 74 |h(10.0);|. PSt|
|00004620| 72 61 6e 73 6c 61 74 65 | 28 62 6f 75 6e 64 73 2e |ranslate|(bounds.|
|00004630| 73 69 7a 65 2e 77 69 64 | 74 68 2a 30 2e 35 2c 20 |size.wid|th*0.5, |
|00004640| 09 62 6f 75 6e 64 73 2e | 73 69 7a 65 2e 68 65 69 |.bounds.|size.hei|
|00004650| 67 68 74 2a 30 2e 31 29 | 3b 0d 20 20 20 20 50 53 |ght*0.1)|;. PS|
|00004660| 72 6f 74 61 74 65 28 2d | 6d 79 46 6c 6f 61 74 29 |rotate(-|myFloat)|
|00004670| 3b 0d 20 20 20 20 50 53 | 73 65 74 6d 69 74 65 72 |;. PS|setmiter|
|00004680| 6c 69 6d 69 74 28 32 29 | 3b 0d 20 20 20 20 50 53 |limit(2)|;. PS|
|00004690| 6e 65 77 70 61 74 68 28 | 29 3b 0d 20 20 20 20 09 |newpath(|);. .|
|000046a0| 50 53 6d 6f 76 65 74 6f | 28 30 2e 30 2c 20 30 2e |PSmoveto|(0.0, 0.|
|000046b0| 30 29 3b 0d 09 50 53 6c | 69 6e 65 74 6f 28 30 2e |0);..PSl|ineto(0.|
|000046c0| 30 2c 20 62 6f 75 6e 64 | 73 2e 73 69 7a 65 2e 68 |0, bound|s.size.h|
|000046d0| 65 69 67 68 74 2a 30 2e | 37 29 3b 0d 20 20 20 20 |eight*0.|7);. |
|000046e0| 09 50 53 72 6d 6f 76 65 | 74 6f 28 2d 41 52 52 4f |.PSrmove|to(-ARRO|
|000046f0| 57 5f 4c 45 4e 47 54 48 | 2c 20 2d 41 52 52 4f 57 |W_LENGTH|, -ARROW|
|00004700| 5f 4c 45 4e 47 54 48 29 | 3b 0d 20 20 20 20 09 50 |_LENGTH)|;. .P|
|00004710| 53 72 6c 69 6e 65 74 6f | 28 41 52 52 4f 57 5f 4c |Srlineto|(ARROW_L|
|00004720| 45 4e 47 54 48 2c 20 41 | 52 52 4f 57 5f 4c 45 4e |ENGTH, A|RROW_LEN|
|00004730| 47 54 48 29 3b 0d 20 20 | 20 20 09 50 53 72 6c 69 |GTH);. | .PSrli|
|00004740| 6e 65 74 6f 28 41 52 52 | 4f 57 5f 4c 45 4e 47 54 |neto(ARR|OW_LENGT|
|00004750| 48 2c 20 2d 41 52 52 4f | 57 5f 4c 45 4e 47 54 48 |H, -ARRO|W_LENGTH|
|00004760| 29 3b 0d 02 7a 20 20 20 | 20 50 53 73 74 72 6f 6b |);..z | PSstrok|
|00004770| 65 28 29 3b 0d 20 20 20 | 20 72 65 74 75 72 6e 20 |e();. | return |
|00004780| 73 65 6c 66 3b 0d 7d 0d | ff 00 15 0a 01 f7 fc 00 |self;.}.|........|
|00004790| 6d 01 e6 00 6d 00 0e f7 | 0d ff 00 15 0a 00 f7 54 |m...m...|.......T|
|000047a0| 68 65 20 50 6f 73 74 53 | 63 72 69 70 74 20 6f 70 |he PostS|cript op|
|000047b0| 65 72 61 74 6f 72 3a ff | 00 15 0a 01 f7 0d 0d fc |erator:.|........|
|000047c0| 00 a1 01 e6 00 a1 00 0e | 03 60 f7 ff 00 16 0a 00 |........|.`......|
|000047d0| f7 20 20 50 53 74 72 61 | 6e 73 6c 61 74 65 28 62 |. PStra|nslate(b|
|000047e0| 6f 75 6e 64 73 2e 73 69 | 7a 65 2e 77 69 64 74 68 |ounds.si|ze.width|
|000047f0| 2a 30 2e 35 2c 20 09 62 | 6f 75 6e 64 73 2e 73 69 |*0.5, .b|ounds.si|
|00004800| 7a 65 2e 68 65 69 67 68 | 74 2a 30 2e 31 29 3b 0d |ze.heigh|t*0.1);.|
|00004810| fc 00 6d 01 e6 00 6d 00 | 0e f7 ff 00 15 0a 01 f7 |..m...m.|........|
|00004820| 0d ff 00 15 0a 00 f7 77 | 69 6c 6c 20 74 72 61 6e |.......w|ill tran|
|00004830| 73 6c 61 74 65 20 74 68 | 65 20 6f 72 69 67 69 6e |slate th|e origin|
|00004840| 20 6f 66 20 74 68 65 20 | 6e 65 77 20 63 6f 6f 72 | of the |new coor|
|00004850| 64 69 6e 61 74 65 20 73 | 79 73 74 65 6d 20 74 6f |dinate s|ystem to|
|00004860| 20 61 20 70 6f 69 6e 74 | 20 68 61 6c 66 20 74 68 | a point| half th|
|00004870| 65 20 77 69 64 74 68 20 | 6f 66 20 74 68 65 20 76 |e width |of the v|
|00004880| 69 65 77 20 61 6e 64 20 | 31 2f 31 30 20 6f 66 20 |iew and |1/10 of |
|00004890| 74 68 65 20 77 61 79 20 | 75 70 2e 20 20 54 68 65 |the way |up. The|
|000048a0| 20 62 6f 75 6e 64 73 20 | 73 74 72 75 63 74 75 72 | bounds |structur|
|000048b0| 65 20 69 73 20 61 20 43 | 20 64 61 74 61 20 73 74 |e is a C| data st|
|000048c0| 72 75 63 74 75 72 65 20 | 74 68 61 74 20 69 73 20 |ructure |that is |
|000048d0| 64 65 66 69 6e 65 64 20 | 69 6e 20 74 68 65 20 56 |defined |in the V|
|000048e0| 69 65 77 20 63 6c 61 73 | 73 2e 20 20 57 65 20 61 |iew clas|s. We a|
|000048f0| 72 65 20 75 73 69 6e 67 | 20 69 6e 68 65 72 69 74 |re using| inherit|
|00004900| 61 6e 63 65 20 77 68 65 | 6e 20 77 65 20 75 73 65 |ance whe|n we use|
|00004910| 20 74 68 69 73 20 76 61 | 72 69 61 62 6c 65 2e 20 | this va|riable. |
|00004920| 20 46 6f 72 20 61 20 66 | 75 6c 6c 20 6c 69 73 74 | For a f|ull list|
|00004930| 20 6f 66 20 61 6c 6c 20 | 6f 66 20 74 68 65 20 73 | of all |of the s|
|00004940| 74 72 75 63 74 75 72 65 | 73 20 74 68 61 74 20 74 |tructure|s that t|
|00004950| 68 65 20 56 69 65 77 20 | 43 6c 61 73 73 20 61 6c |he View |Class al|
|00004960| 6c 6f 77 73 20 75 73 20 | 74 6f 20 75 73 65 20 77 |lows us |to use w|
|00004970| 65 20 77 6f 75 6c 64 20 | 6c 6f 6f 6b 20 69 6e 20 |e would |look in |
|00004980| 74 68 65 20 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |the docu|mentatio|
|00004990| 6e 20 66 6f 72 20 74 68 | 65 20 56 69 65 77 20 63 |n for th|e View c|
|000049a0| 6c 61 73 73 2e 20 20 54 | 68 69 73 20 6d 61 74 65 |lass. T|his mate|
|000049b0| 72 69 61 6c 20 69 73 20 | 70 72 6f 76 69 64 65 73 |rial is |provides|
|000049c0| 20 6f 6e 2d 6c 69 6e 65 | 20 6f 6e 20 6d 6f 73 74 | on-line| on most|
|000049d0| 20 4e 65 58 54 20 73 79 | 73 74 65 6d 73 2e 0d 03 | NeXT sy|stems...|
|000049e0| 70 f5 f6 ff 00 15 24 01 | f7 43 68 61 70 74 65 72 |p.....$.|.Chapter|
|000049f0| 20 38 3a 20 44 72 61 77 | 69 6e 67 20 2d 20 57 69 | 8: Draw|ing - Wi|
|00004a00| 6e 64 6f 77 73 20 77 69 | 74 68 20 61 20 56 69 65 |ndows wi|th a Vie|
|00004a10| 77 ff 00 15 0c 00 f7 0d | 0d 0d 0d 0d 0d 0d 0d 0d |w.......|........|
|00004a20| 0d ff 00 15 0c 02 f7 0d | 0d fc 00 7d 01 e6 00 7d |........|...}...}|
|00004a30| 00 0e 02 b0 06 30 f7 0d | 0d 0d 0d 0d 59 65 73 2c |.....0..|....Yes,|
|00004a40| 20 77 65 20 64 6f 20 77 | 69 6e 64 6f 77 73 2e 0d | we do w|indows..|
|00004a50| 09 2d 61 6e 6f 6e 0d fc | 00 7e 01 e6 00 7e 00 0e |.-anon..|.~...~..|
|00004a60| 03 64 06 30 f7 0d fc 00 | 7e 01 e6 00 7e 00 0e 02 |.d.0....|~...~...|
|00004a70| b0 06 30 f7 0d fc 00 48 | 02 0a 00 48 00 0e 01 b0 |..0....H|...H....|
|00004a80| 06 30 f7 ff 00 15 10 01 | f7 44 69 73 70 6c 61 79 |.0......|.Display|
|00004a90| 20 50 6f 73 74 53 63 72 | 69 70 74 ff 00 15 0c 02 | PostScr|ipt.....|
|00004aa0| f7 0d fc 00 5a 02 0a 00 | 5a 00 0e 01 b0 06 30 f7 |....Z...|Z.....0.|
|00004ab0| 0d fc 00 6c 02 0a 00 6c | 00 0e 01 b0 06 30 f7 ff |...l...l|.....0..|
|00004ac0| 00 15 0a 00 f7 57 65 6c | 63 6f 6d 65 20 74 6f 20 |.....Wel|come to |
|00004ad0| 6d 79 20 66 61 76 6f 72 | 69 74 65 20 63 68 61 70 |my favor|ite chap|
|00004ae0| 74 65 72 20 6f 66 20 74 | 68 69 73 20 62 6f 6f 6b |ter of t|his book|
|00004af0| 2e 20 20 49 74 20 64 65 | 73 63 72 69 62 65 73 20 |. It de|scribes |
|00004b00| 6f 6e 65 20 6f 66 20 74 | 68 65 20 6d 6f 73 74 20 |one of t|he most |
|00004b10| 65 6c 65 67 61 6e 74 20 | 61 6e 64 20 70 6f 77 65 |elegant |and powe|
|00004b20| 72 66 75 6c 20 66 65 61 | 74 75 72 65 73 20 6f 66 |rful fea|tures of|
|00004b30| 20 4e 65 58 54 73 74 65 | 70 3a 20 69 74 73 20 69 | NeXTste|p: its i|
|00004b40| 6e 74 65 67 72 61 74 65 | 64 20 50 6f 73 74 53 63 |ntegrate|d PostSc|
|00004b50| 72 69 70 74 20 64 72 61 | 77 69 6e 67 20 65 6e 76 |ript dra|wing env|
|00004b60| 69 72 6f 6e 6d 65 6e 74 | 2e 20 20 41 64 6f 62 65 |ironment|. Adobe|
|00004b70| 20 63 61 6c 6c 65 64 20 | 69 74 20 44 69 73 70 6c | called |it Displ|
|00004b80| 61 79 20 50 6f 73 74 73 | 63 72 69 70 74 2e 20 20 |ay Posts|cript. |
|00004b90| 54 68 65 20 4e 65 58 54 | 20 62 72 6f 63 68 75 72 |The NeXT| brochur|
|00004ba0| 65 73 20 63 61 6c 6c 20 | 69 74 20 61 20 22 55 6e |es call |it a "Un|
|00004bb0| 69 66 69 65 64 20 49 6d | 61 67 69 6e 67 20 4d 6f |ified Im|aging Mo|
|00004bc0| 64 65 6c 22 2e 20 20 50 | 65 6f 70 6c 65 20 64 6f |del". P|eople do|
|00004bd0| 69 6e 67 20 64 65 73 6b | 2d 74 6f 70 20 70 75 62 |ing desk|-top pub|
|00004be0| 6c 69 73 68 69 6e 67 20 | 73 61 79 73 20 69 74 20 |lishing |says it |
|00004bf0| 67 69 76 65 73 20 74 68 | 65 6d 20 22 70 72 65 63 |gives th|em "prec|
|00004c00| 69 73 69 6f 6e 20 6c 61 | 79 6f 75 74 73 22 2e 20 |ision la|youts". |
|00004c10| 20 50 72 6f 67 72 61 6d | 6d 65 72 73 20 77 68 6f | Program|mers who|
|00004c20| 20 77 61 6e 74 20 62 65 | 61 75 74 69 66 75 6c 20 | want be|autiful |
|00004c30| 67 72 61 70 68 69 63 73 | 20 6f 6e 20 74 68 65 20 |graphics| on the |
|00004c40| 73 63 72 65 65 6e 20 61 | 6e 64 20 6f 6e 20 6c 61 |screen a|nd on la|
|00004c50| 73 65 72 20 70 72 69 6e | 74 65 64 20 6f 75 74 70 |ser prin|ted outp|
|00004c60| 75 74 20 63 61 6c 6c 20 | 69 74 20 77 6f 6e 64 65 |ut call |it wonde|
|00004c70| 72 66 75 6c 2e 20 20 49 | 74 20 69 73 20 70 61 72 |rful. I|t is par|
|00004c80| 74 20 6f 66 20 74 68 65 | 20 69 6e 74 65 6c 6c 69 |t of the| intelli|
|00004c90| 67 65 6e 74 20 73 6f 66 | 74 77 61 72 65 20 61 72 |gent sof|tware ar|
|00004ca0| 63 68 69 74 65 63 74 75 | 72 65 20 74 68 61 74 20 |chitectu|re that |
|00004cb0| 73 65 70 61 72 61 74 65 | 73 20 4e 65 58 54 73 74 |separate|s NeXTst|
|00004cc0| 65 70 20 66 72 6f 6d 20 | 6d 6f 73 74 20 6f 66 20 |ep from |most of |
|00004cd0| 74 68 65 20 61 6c 74 65 | 72 6e 61 74 69 76 65 20 |the alte|rnative |
|00004ce0| 73 6f 66 74 77 61 72 65 | 20 61 72 63 68 69 74 65 |software| archite|
|00004cf0| 63 74 75 72 65 73 2e 0d | fc 00 5a 02 0a 00 5a 00 |ctures..|..Z...Z.|
|00004d00| 0e 01 b0 06 30 f7 0d fc | 00 48 02 0a 00 48 00 0e |....0...|.H...H..|
|00004d10| 01 b0 06 30 f7 ff 00 15 | 10 01 f7 49 6d 6d 65 64 |...0....|...Immed|
|00004d20| 69 61 74 65 20 47 72 61 | 70 68 69 63 61 6c 20 46 |iate Gra|phical F|
|00004d30| 65 65 64 62 61 63 6b 3a | 20 4c 65 73 73 6f 6e 73 |eedback:| Lessons|
|00004d40| 20 66 72 6f 6d 20 4c 6f | 67 6f ff 00 15 0a 00 f7 | from Lo|go......|
|00004d50| 0d 04 25 fc 00 5a 02 3e | 00 5a 02 0e 01 b0 f7 ff |..%..Z.>|.Z......|
|00004d60| 00 15 0a 01 f7 0d 46 69 | 67 75 72 65 20 38 2d 38 |......Fi|gure 8-8|
|00004d70| 3a 20 41 20 73 69 6d 70 | 6c 65 20 67 61 75 67 65 |: A simp|le gauge|
|00004d80| 20 6f 62 6a 65 63 74 0d | fc 00 6d 01 e6 00 6d 02 | object.|..m...m.|
|00004d90| 0e f7 ff 00 16 0a 00 f7 | 0d fc 00 6d 01 e6 00 6d |........|...m...m|
|00004da0| 00 0e f7 ff 00 15 0a 00 | f7 54 68 69 73 20 63 6f |........|.This co|
|00004db0| 6e 63 6c 75 64 65 73 20 | 6f 75 72 20 69 6e 74 72 |ncludes |our intr|
|00004dc0| 6f 64 75 63 74 69 6f 6e | 20 74 6f 20 64 72 61 77 |oduction| to draw|
|00004dd0| 69 6e 67 20 6f 6e 20 74 | 68 65 20 4e 65 58 54 2e |ing on t|he NeXT.|
|00004de0| 20 20 4f 75 72 20 6e 65 | 78 74 20 63 68 61 70 74 | Our ne|xt chapt|
|00004df0| 65 72 20 77 69 6c 6c 20 | 69 6e 74 72 6f 64 75 63 |er will |introduc|
|00004e00| 65 20 6d 65 74 68 6f 64 | 73 20 66 6f 72 20 69 6e |e method|s for in|
|00004e10| 69 74 69 61 6c 69 7a 69 | 6e 67 20 64 61 74 61 20 |itializi|ng data |
|00004e20| 75 73 65 64 20 69 6e 20 | 73 75 62 63 6c 61 73 73 |used in |subclass|
|00004e30| 65 73 20 6f 66 20 76 69 | 65 77 73 20 61 6e 64 20 |es of vi|ews and |
|00004e40| 77 69 6c 6c 20 73 68 6f | 77 20 75 73 20 68 6f 77 |will sho|w us how|
|00004e50| 20 74 6f 20 69 6e 74 65 | 67 72 61 74 65 20 66 69 | to inte|grate fi|
|00004e60| 6c 65 73 20 74 68 61 74 | 20 63 6f 6e 74 61 69 6e |les that| contain|
|00004e70| 20 70 75 72 65 20 50 6f | 73 74 53 63 72 69 70 74 | pure Po|stScript|
|00004e80| 20 63 6f 6d 6d 61 6e 64 | 73 20 69 6e 74 6f 20 6f | command|s into o|
|00004e90| 75 72 20 70 72 6f 67 72 | 61 6d 73 2e 0d 0d 54 68 |ur progr|ams...Th|
|00004ea0| 65 20 6c 61 73 74 20 73 | 65 63 74 69 6f 6e 20 6f |e last s|ection o|
|00004eb0| 66 20 74 68 69 73 20 63 | 68 61 70 74 65 72 20 63 |f this c|hapter c|
|00004ec0| 6f 6e 74 61 69 6e 73 20 | 61 20 73 75 6d 6d 61 72 |ontains |a summar|
|00004ed0| 79 20 6f 66 20 73 6f 6d | 65 20 6f 66 20 74 68 65 |y of som|e of the|
|00004ee0| 20 50 6f 73 74 53 63 72 | 69 70 74 20 63 6f 6d 6d | PostScr|ipt comm|
|00004ef0| 61 6e 64 73 20 75 73 65 | 64 20 66 6f 72 20 62 61 |ands use|d for ba|
|00004f00| 73 69 63 20 64 72 61 77 | 69 6e 67 2e 20 20 54 68 |sic draw|ing. Th|
|00004f10| 69 73 20 69 73 20 6f 6e | 6c 79 20 61 20 73 6d 61 |is is on|ly a sma|
|00004f20| 6c 6c 20 66 72 61 63 74 | 69 6f 6e 20 6f 66 20 61 |ll fract|ion of a|
|00004f30| 6c 6c 20 74 68 65 20 50 | 6f 73 74 53 63 72 69 70 |ll the P|ostScrip|
|00004f40| 74 20 63 6f 6d 6d 61 6e | 64 73 2e 20 20 49 74 20 |t comman|ds. It |
|00004f50| 64 6f 65 73 20 6e 6f 74 | 20 63 6f 6e 74 61 69 6e |does not| contain|
|00004f60| 20 61 6e 79 20 6f 66 20 | 74 68 65 20 63 6f 6d 6d | any of |the comm|
|00004f70| 61 6e 64 73 20 66 6f 72 | 20 63 6f 6e 74 72 6f 6c |ands for| control|
|00004f80| 6c 69 6e 67 20 74 65 78 | 74 2c 20 62 75 69 6c 64 |ling tex|t, build|
|00004f90| 69 6e 67 20 79 6f 75 72 | 20 6f 77 6e 20 70 65 72 |ing your| own per|
|00004fa0| 73 6f 6e 61 6c 20 66 6f | 6e 74 20 6c 69 62 72 61 |sonal fo|nt libra|
|00004fb0| 72 79 20 61 6e 64 20 61 | 64 6a 75 73 74 69 6e 67 |ry and a|djusting|
|00004fc0| 20 6b 65 72 6e 69 6e 67 | 20 70 61 69 72 73 2c 20 | kerning| pairs, |
|00004fd0| 62 75 74 20 69 74 20 69 | 73 20 65 6e 6f 75 67 68 |but it i|s enough|
|00004fe0| 20 66 6f 72 20 6d 6f 73 | 74 20 70 65 6f 70 6c 65 | for mos|t people|
|00004ff0| 20 74 6f 20 67 65 74 20 | 73 74 61 72 74 65 64 20 | to get |started |
|00005000| 77 69 74 68 20 70 72 69 | 6d 69 74 69 76 65 20 67 |with pri|mitive g|
|00005010| 72 61 70 68 69 63 73 2e | 20 20 46 6f 72 20 61 20 |raphics.| For a |
|00005020| 63 6f 6d 70 6c 65 74 65 | 20 64 65 73 63 72 69 70 |complete| descrip|
|00005030| 74 69 6f 6e 20 6f 66 20 | 68 6f 77 20 74 6f 20 75 |tion of |how to u|
|00005040| 73 65 20 74 68 65 20 50 | 6f 73 74 53 63 72 69 70 |se the P|ostScrip|
|00005050| 74 20 6c 61 6e 67 75 61 | 67 65 20 73 65 65 20 74 |t langua|ge see t|
|00005060| 68 65 20 52 65 66 65 72 | 65 6e 63 65 73 20 73 65 |he Refer|ences se|
|00005070| 63 74 69 6f 6e 20 6f 66 | 20 74 68 69 73 20 62 6f |ction of| this bo|
|00005080| 6f 6b 2e 20 20 54 77 6f | 20 62 6f 6f 6b 73 20 6c |ok. Two| books l|
|00005090| 69 73 74 65 64 20 74 68 | 65 72 65 3a 20 50 6f 73 |isted th|ere: Pos|
|000050a0| 74 53 63 72 69 70 74 20 | 4c 61 6e 67 75 61 67 65 |tScript |Language|
|000050b0| 20 54 75 74 6f 72 69 61 | 6c 20 61 6e 64 20 43 6f | Tutoria|l and Co|
|000050c0| 6f 6b 62 6f 6f 6b 20 28 | 6b 6e 6f 77 20 61 73 20 |okbook (|know as |
|000050d0| 74 68 65 20 22 42 6c 75 | 65 20 42 6f 6f 6b 22 29 |the "Blu|e Book")|
|000050e0| 20 61 6e 64 20 74 68 65 | 20 50 6f 73 74 53 63 72 | and the| PostScr|
|000050f0| 69 70 74 20 43 6f 6d 6d | 61 6e 64 20 52 65 66 65 |ipt Comm|and Refe|
|00005100| 72 65 6e 63 65 20 4d 61 | 6e 75 61 6c 20 28 6b 6e |rence Ma|nual (kn|
|00005110| 6f 77 6e 20 61 73 20 74 | 68 65 20 22 52 65 64 20 |own as t|he "Red |
|00005120| 42 6f 6f 6b 22 29 20 61 | 72 65 20 76 65 72 79 20 |Book") a|re very |
|00005130| 75 73 65 66 75 6c 20 66 | 6f 72 20 62 75 69 6c 64 |useful f|or build|
|00005140| 69 6e 67 20 79 6f 75 20 | 64 72 61 77 69 6e 67 20 |ing you |drawing |
|00005150| 76 6f 63 61 62 75 6c 61 | 72 79 20 66 6f 72 20 61 |vocabula|ry for a|
|00005160| 64 76 61 6e 63 65 64 20 | 67 72 61 70 68 69 63 73 |dvanced |graphics|
|00005170| 2e ff 00 15 0a 00 f7 0d | 00 fc 64 00 49 df 00 2a |........|..d.I..*|
|00005180| a6 00 02 a9 00 00 a7 00 | 02 86 01 e6 4c 00 10 cd |........|....L...|
|00005190| 00 b6 64 00 14 e6 00 ad | 0c 00 03 05 00 2a 4d 00 |..d.....|.....*M.|
|000051a0| 18 70 00 8a 4c 00 18 a0 | 00 1c 0d 00 03 0a 00 8e |.p..L...|........|
|000051b0| 6c 00 18 c2 01 47 0c 00 | 08 3b 00 70 6c 00 1f 86 |l....G..|.;.pl...|
|000051c0| 00 b4 6c 00 22 69 00 9a | 0d 00 03 2b 00 fd 6c 00 |..l."i..|...+..l.|
|000051d0| 0a ae 00 c5 0d 00 03 52 | 00 b2 6c 00 03 a4 00 9a |.......R|..l.....|
|000051e0| 0d 00 03 74 00 f9 6c 00 | 0d 79 00 e1 0c 00 05 bd |...t..l.|.y......|
|000051f0| 00 1c 0d 00 05 c1 00 b4 | 6c 00 05 ec 01 27 6c 00 |........|l....'l.|
|00005200| 23 9f 00 fc 6c 00 27 0c | 00 e2 4d 00 29 f8 00 ff |#...l.'.|..M.)...|
|00005210| 6c 00 31 f5 01 1d 74 00 | 3e 10 01 6d 6c 00 2a 2c |l.1...t.|>..ml.*,|
|00005220| 01 5f 6c 00 2e 0a 01 89 | 6c 00 35 71 00 44 5c 00 |._l.....|l.5q.D\.|
|00005230| 31 c4 00 1a 0d 00 31 d3 | 01 05 64 00 42 44 00 c0 |1.....1.|..d.BD..|
|00005240| 74 00 45 67 00 ef 64 00 | 47 63 00 d2 6c 00 36 1d |t.Eg..d.|Gc..l.6.|
|00005250| 00 9a 3c 00 38 2b 00 0e | 0d 00 38 34 00 f6 64 00 |..<.8+..|..84..d.|
|00005260| 4d 51 00 e0 6c 00 38 56 | 00 0e 7c 00 38 69 00 b7 |MQ..l.8V|..|.8i..|
|00005270| 64 00 3b 07 00 c1 03 75 | f5 f6 ff 00 15 24 01 f7 |d.;....u|.....$..|
|00005280| 43 68 61 70 74 65 72 20 | 38 3a 20 44 72 61 77 69 |Chapter |8: Drawi|
|00005290| 6e 67 20 2d 20 57 69 6e | 64 6f 77 73 20 77 69 74 |ng - Win|dows wit|
|000052a0| 68 20 61 20 56 69 65 77 | ff 00 15 0c 00 f7 0d 0d |h a View|........|
|000052b0| 0d 0d 0d 0d 0d 0d 0d 0d | ff 00 15 0c 02 f7 0d 0d |........|........|
|000052c0| fc 00 7d 01 e6 00 7d 00 | 0e 02 b0 06 30 f7 0d 0d |..}...}.|....0...|
|000052d0| 0d 0d 0d 59 65 73 2c 20 | 77 65 20 64 6f 20 77 69 |...Yes, |we do wi|
|000052e0| 6e 64 6f 77 73 2e 0d 09 | 2d 61 6e 6f 6e 0d fc 00 |ndows...|-anon...|
|000052f0| 7e 01 e6 00 7e 00 0e 03 | 64 06 30 f7 0d fc 00 7e |~...~...|d.0....~|
|00005300| 01 e6 00 7e 00 0e 02 b0 | 06 30 f7 0d fc 00 48 02 |...~....|.0....H.|
|00005310| 0a 00 48 00 0e 01 b0 06 | 30 f7 ff 00 15 10 01 f7 |..H.....|0.......|
|00005320| 44 69 73 70 6c 61 79 20 | 50 6f 73 74 53 63 72 69 |Display |PostScri|
|00005330| 70 74 ff 00 15 0c 02 f7 | 0d fc 00 5a 02 0a 00 5a |pt......|...Z...Z|
|00005340| 00 0e 01 b0 06 30 f7 0d | fc 00 6c 02 0a 00 6c 00 |.....0..|..l...l.|
|00005350| 0e 01 b0 06 30 f7 ff 00 | 15 0a 00 f7 57 65 6c 63 |....0...|....Welc|
|00005360| 6f 6d 65 20 74 6f 20 6d | 79 20 66 61 76 6f 72 69 |ome to m|y favori|
|00005370| 74 65 20 63 68 61 70 74 | 65 72 20 6f 66 20 74 68 |te chapt|er of th|
|00005380| 69 73 20 62 6f 6f 6b 2e | 20 20 49 74 20 64 65 73 |is book.| It des|
|00005390| 63 72 69 62 65 73 20 6f | 6e 65 20 6f 66 20 74 68 |cribes o|ne of th|
|000053a0| 65 20 6d 6f 73 74 20 65 | 6c 65 67 61 6e 74 20 61 |e most e|legant a|
|000053b0| 6e 64 20 70 6f 77 65 72 | 66 75 6c 20 66 65 61 74 |nd power|ful feat|
|000053c0| 75 72 65 73 20 6f 66 20 | 4e 65 58 54 73 74 65 70 |ures of |NeXTstep|
|000053d0| 3a 20 69 74 73 20 69 6e | 74 65 67 72 61 74 65 64 |: its in|tegrated|
|000053e0| 20 50 6f 73 74 53 63 72 | 69 70 74 20 64 72 61 77 | PostScr|ipt draw|
|000053f0| 69 6e 67 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 2e |ing envi|ronment.|
|00005400| 20 20 41 64 6f 62 65 20 | 63 61 6c 6c 65 64 20 69 | Adobe |called i|
|00005410| 74 20 44 69 73 70 6c 61 | 79 20 50 6f 73 74 73 63 |t Displa|y Postsc|
|00005420| 72 69 70 74 2e 20 20 54 | 68 65 20 4e 65 58 54 20 |ript. T|he NeXT |
|00005430| 62 72 6f 63 68 75 72 65 | 73 20 63 61 6c 6c 20 69 |brochure|s call i|
|00005440| 74 20 61 20 22 55 6e 69 | 66 69 65 64 20 49 6d 61 |t a "Uni|fied Ima|
|00005450| 67 69 6e 67 20 4d 6f 64 | 65 6c 22 2e 20 20 50 65 |ging Mod|el". Pe|
|00005460| 6f 70 6c 65 20 64 6f 69 | 6e 67 20 64 65 73 6b 2d |ople doi|ng desk-|
|00005470| 74 6f 70 20 70 75 62 6c | 69 73 68 69 6e 67 20 73 |top publ|ishing s|
|00005480| 61 79 73 20 69 74 20 67 | 69 76 65 73 20 74 68 65 |ays it g|ives the|
|00005490| 6d 20 22 70 72 65 63 69 | 73 69 6f 6e 20 6c 61 79 |m "preci|sion lay|
|000054a0| 6f 75 74 73 22 2e 20 20 | 50 72 6f 67 72 61 6d 6d |outs". |Programm|
|000054b0| 65 72 73 20 77 68 6f 20 | 77 61 6e 74 20 62 6f 74 |ers who |want bot|
|000054c0| 68 20 62 65 61 75 74 69 | 66 75 6c 20 67 72 61 70 |h beauti|ful grap|
|000054d0| 68 69 63 73 20 6f 6e 20 | 74 68 65 20 73 63 72 65 |hics on |the scre|
|000054e0| 65 6e 20 61 6e 64 20 6f | 6e 20 6c 61 73 65 72 20 |en and o|n laser |
|000054f0| 70 72 69 6e 74 65 64 20 | 6f 75 74 70 75 74 20 63 |printed |output c|
|00005500| 61 6c 6c 20 69 74 20 77 | 6f 6e 64 65 72 66 75 6c |all it w|onderful|
|00005510| 2e 20 20 49 74 20 69 73 | 20 70 61 72 74 20 6f 66 |. It is| part of|
|00005520| 20 74 68 65 20 69 6e 74 | 65 6c 6c 69 67 65 6e 74 | the int|elligent|
|00005530| 20 73 6f 66 74 77 61 72 | 65 20 61 72 63 68 69 74 | softwar|e archit|
|00005540| 65 63 74 75 72 65 20 74 | 68 61 74 20 73 65 70 61 |ecture t|hat sepa|
|00005550| 72 61 74 65 73 20 4e 65 | 58 54 73 74 65 70 20 66 |rates Ne|XTstep f|
|00005560| 72 6f 6d 20 6d 6f 73 74 | 20 6f 66 20 74 68 65 20 |rom most| of the |
|00005570| 61 6c 74 65 72 6e 61 74 | 69 76 65 20 73 6f 66 74 |alternat|ive soft|
|00005580| 77 61 72 65 20 61 72 63 | 68 69 74 65 63 74 75 72 |ware arc|hitectur|
|00005590| 65 73 2e 0d fc 00 5a 02 | 0a 00 5a 00 0e 01 b0 06 |es....Z.|..Z.....|
|000055a0| 30 f7 0d fc 00 48 02 0a | 00 48 00 0e 01 b0 06 30 |0....H..|.H.....0|
|000055b0| f7 ff 00 15 10 01 f7 49 | 6d 6d 65 64 69 61 74 65 |.......I|mmediate|
|000055c0| 20 47 72 61 70 68 69 63 | 61 6c 20 46 65 65 64 62 | Graphic|al Feedb|
|000055d0| 61 63 6b 3a 20 4c 65 73 | 73 6f 6e 73 20 66 72 6f |ack: Les|sons fro|
|000055e0| 6d 20 4c 6f 67 6f ff 00 | 15 0a 00 f7 0d 00 fc 64 |m Logo..|.......d|
|000055f0| 00 52 76 00 2a a6 00 02 | a9 00 00 a7 00 02 86 01 |.Rv.*...|........|
|00005600| e6 4c 00 10 cd 00 b6 64 | 00 14 e6 00 ad 0c 00 03 |.L.....d|........|
|00005610| 05 00 2a 4d 00 18 70 00 | 8a 4c 00 18 a0 00 1c 0d |..*M..p.|.L......|
|00005620| 00 03 0a 00 8e 6c 00 18 | c2 01 47 0c 00 08 3b 00 |.....l..|..G...;.|
|00005630| 70 6c 00 1f 86 00 b4 6c | 00 22 69 00 9a 0d 00 03 |pl.....l|."i.....|
|00005640| 2b 00 fd 6c 00 0a ae 00 | c5 0d 00 03 52 00 b2 6c |+..l....|....R..l|
|00005650| 00 03 a4 00 9a 0d 00 03 | 74 00 f9 6c 00 0d 79 00 |........|t..l..y.|
|00005660| e1 0c 00 05 bd 00 1c 0d | 00 05 c1 00 b4 6c 00 05 |........|.....l..|
|00005670| ec 01 27 6c 00 23 9f 00 | fc 6c 00 27 0c 00 e2 4d |..'l.#..|.l.'...M|
|00005680| 00 29 f8 00 ff 6c 00 31 | f5 01 1d 74 00 3e 10 01 |.)...l.1|...t.>..|
|00005690| 6d 6c 00 2a 2c 01 5f 6c | 00 2e 0a 01 89 6c 00 35 |ml.*,._l|.....l.5|
|000056a0| 71 00 44 5c 00 31 c4 00 | 1a 0d 00 31 d3 01 05 64 |q.D\.1..|...1...d|
|000056b0| 00 42 44 00 c0 74 00 45 | 67 00 ef 64 00 47 63 00 |.BD..t.E|g..d.Gc.|
|000056c0| d2 6c 00 36 1d 00 9a 3c | 00 38 2b 00 0e 0d 00 38 |.l.6...<|.8+....8|
|000056d0| 34 00 f6 64 00 4d 51 00 | e0 6c 00 38 56 00 0e 7c |4..d.MQ.|.l.8V..||
|000056e0| 00 38 69 00 b7 64 00 3b | 07 00 c1 00 21 0d 50 61 |.8i..d.;|....!.Pa|
|000056f0| 67 65 20 38 2d fd 00 f7 | 20 20 20 20 20 20 20 fd |ge 8-...| .|
|00005700| 01 f7 20 20 20 20 20 20 | 20 fd 02 f7 0d 0d 00 fc |.. | .......|
|00005710| 64 00 52 76 00 2a a6 00 | 02 a9 00 00 a7 00 56 eb |d.Rv.*..|......V.|
|00005720| 01 e6 4c 00 10 cd 00 b6 | 6c 00 14 e6 00 ad 0c 00 |..L.....|l.......|
|00005730| 03 05 00 2a 4d 00 18 70 | 00 8a 4c 00 18 a0 00 1c |...*M..p|..L.....|
|00005740| 0d 00 03 0a 00 8e 6c 00 | 18 c2 01 47 0c 00 08 3b |......l.|...G...;|
|00005750| 00 70 6c 00 1f 86 00 b4 | 6c 00 22 69 00 9a 0d 00 |.pl.....|l."i....|
|00005760| 03 2b 00 fd 6c 00 0a ae | 00 c5 0d 00 03 52 00 b2 |.+..l...|.....R..|
|00005770| 6c 00 03 a4 00 9a 0d 00 | 03 74 00 f9 6c 00 0d 79 |l.......|.t..l..y|
|00005780| 00 e1 0c 00 05 bd 00 1c | 0d 00 05 c1 00 b4 6c 00 |........|......l.|
|00005790| 05 ec 01 27 6c 00 23 9f | 00 fc 6c 00 27 0c 00 e2 |...'l.#.|..l.'...|
|000057a0| 4d 00 29 f8 00 ff 6c 00 | 31 f5 01 1d 7c 00 3e 10 |M.)...l.|1...|.>.|
|000057b0| 01 6d 6c 00 2a 2c 01 5f | 6c 00 2e 0a 01 89 6c 00 |.ml.*,._|l.....l.|
|000057c0| 35 71 00 44 5c 00 31 c4 | 00 1a 0d 00 31 d3 01 05 |5q.D\.1.|....1...|
|000057d0| 6c 00 42 44 00 c0 7c 00 | 45 67 00 ef 6c 00 47 63 |l.BD..|.|Eg..l.Gc|
|000057e0| 00 d2 6c 00 36 1d 00 9a | 3c 00 38 2b 00 0e 0d 00 |..l.6...|<.8+....|
|000057f0| 38 34 00 f6 6c 00 4d 51 | 00 e0 6c 00 38 56 00 0e |84..l.MQ|..l.8V..|
|00005800| 7c 00 38 69 00 b7 6c 00 | 3b 07 00 c1 00 18 04 00 ||.8i..l.|;.......|
|00005810| 02 00 00 38 04 00 02 06 | 00 38 24 00 02 a9 00 38 |...8....|.8$....8|
|00005820| 04 00 56 eb 00 2a 00 68 | 0d ff 00 15 0a 00 f7 4f |..V..*.h|.......O|
|00005830| 62 6a 65 63 74 20 42 61 | 73 65 64 20 43 6f 6d 70 |bject Ba|sed Comp|
|00005840| 75 74 69 6e 67 3a 20 41 | 20 4e 65 78 74 53 74 65 |uting: A| NextSte|
|00005850| 70 20 54 75 74 6f 72 69 | 61 6c 20 61 6e 64 20 43 |p Tutori|al and C|
|00005860| 6f 6f 6b 62 6f 6f 6b 20 | 2d 20 56 65 72 73 69 6f |ookbook |- Versio|
|00005870| 6e 20 31 2e 35 20 2d 20 | 44 47 4d 0d 43 68 61 70 |n 1.5 - |DGM.Chap|
|00005880| 74 65 72 20 38 3a 20 44 | 72 61 77 69 6e 67 0d 0d |ter 8: D|rawing..|
|00005890| 03 74 f5 f6 ff 00 15 24 | 01 f7 43 68 61 70 74 65 |.t.....$|..Chapte|
|000058a0| 72 20 38 0d 44 72 61 77 | 69 6e 67 20 2d 20 57 69 |r 8.Draw|ing - Wi|
|000058b0| 6e 64 6f 77 73 20 77 69 | 74 68 20 61 20 56 69 65 |ndows wi|th a Vie|
|000058c0| 77 ff 00 15 0c 00 f7 0d | 0d 0d 0d 0d 0d 0d 0d 0d |w.......|........|
|000058d0| 0d ff 00 15 0c 02 f7 0d | 0d fc 00 7d 01 e6 00 7d |........|...}...}|
|000058e0| 00 0e 02 b0 06 30 f7 0d | 0d 0d 0d 0d 59 65 73 2c |.....0..|....Yes,|
|000058f0| 20 77 65 20 64 6f 20 77 | 69 6e 64 6f 77 73 2e 0d | we do w|indows..|
|00005900| 09 2d 61 6e 6f 6e 0d fc | 00 7e 01 e6 00 7e 00 0e |.-anon..|.~...~..|
|00005910| 03 64 06 30 f7 0d fc 00 | 7e 01 e6 00 7e 00 0e 02 |.d.0....|~...~...|
|00005920| b0 06 30 f7 0d fc 00 48 | 02 0a 00 48 00 0e 01 b0 |..0....H|...H....|
|00005930| 06 30 f7 ff 00 15 10 01 | f7 44 69 73 70 6c 61 79 |.0......|.Display|
|00005940| 20 50 6f 73 74 53 63 72 | 69 70 74 ff 00 15 0c 02 | PostScr|ipt.....|
|00005950| f7 0d fc 00 5a 02 0a 00 | 5a 00 0e 01 b0 06 30 f7 |....Z...|Z.....0.|
|00005960| 0d fc 00 6c 02 0a 00 6c | 00 0e 01 b0 06 30 f7 ff |...l...l|.....0..|
|00005970| 00 15 0a 00 f7 57 65 6c | 63 6f 6d 65 20 74 6f 20 |.....Wel|come to |
|00005980| 6d 79 20 66 61 76 6f 72 | 69 74 65 20 63 68 61 70 |my favor|ite chap|
|00005990| 74 65 72 20 6f 66 20 74 | 68 69 73 20 62 6f 6f 6b |ter of t|his book|
|000059a0| 2e 20 20 49 74 20 64 65 | 73 63 72 69 62 65 73 20 |. It de|scribes |
|000059b0| 6f 6e 65 20 6f 66 20 74 | 68 65 20 6d 6f 73 74 20 |one of t|he most |
|000059c0| 65 6c 65 67 61 6e 74 20 | 61 6e 64 20 70 6f 77 65 |elegant |and powe|
|000059d0| 72 66 75 6c 20 66 65 61 | 74 75 72 65 73 20 6f 66 |rful fea|tures of|
|000059e0| 20 4e 65 58 54 73 74 65 | 70 3a 20 69 74 73 20 69 | NeXTste|p: its i|
|000059f0| 6e 74 65 67 72 61 74 65 | 64 20 50 6f 73 74 53 63 |ntegrate|d PostSc|
|00005a00| 72 69 70 74 20 64 72 61 | 77 69 6e 67 20 65 6e 76 |ript dra|wing env|
|00005a10| 69 72 6f 6e 6d 65 6e 74 | 2e 20 20 41 64 6f 62 65 |ironment|. Adobe|
|00005a20| 20 63 61 6c 6c 65 64 20 | 69 74 20 44 69 73 70 6c | called |it Displ|
|00005a30| 61 79 20 50 6f 73 74 73 | 63 72 69 70 74 2e 20 20 |ay Posts|cript. |
|00005a40| 54 68 65 20 4e 65 58 54 | 20 62 72 6f 63 68 75 72 |The NeXT| brochur|
|00005a50| 65 73 20 63 61 6c 6c 20 | 69 74 20 61 20 22 55 6e |es call |it a "Un|
|00005a60| 69 66 69 65 64 20 49 6d | 61 67 69 6e 67 20 4d 6f |ified Im|aging Mo|
|00005a70| 64 65 6c 22 2e 20 20 50 | 65 6f 70 6c 65 20 64 6f |del". P|eople do|
|00005a80| 69 6e 67 20 64 65 73 6b | 2d 74 6f 70 20 70 75 62 |ing desk|-top pub|
|00005a90| 6c 69 73 68 69 6e 67 20 | 73 61 79 73 20 69 74 20 |lishing |says it |
|00005aa0| 67 69 76 65 73 20 74 68 | 65 6d 20 22 70 72 65 63 |gives th|em "prec|
|00005ab0| 69 73 69 6f 6e 20 6c 61 | 79 6f 75 74 73 22 2e 20 |ision la|youts". |
|00005ac0| 20 50 72 6f 67 72 61 6d | 6d 65 72 73 20 77 68 6f | Program|mers who|
|00005ad0| 20 77 61 6e 74 20 62 6f | 74 68 20 62 65 61 75 74 | want bo|th beaut|
|00005ae0| 69 66 75 6c 20 67 72 61 | 70 68 69 63 73 20 6f 6e |iful gra|phics on|
|00005af0| 20 74 68 65 20 73 63 72 | 65 65 6e 20 61 6e 64 20 | the scr|een and |
|00005b00| 6f 6e 20 6c 61 73 65 72 | 20 70 72 69 6e 74 65 64 |on laser| printed|
|00005b10| 20 6f 75 74 70 75 74 20 | 63 61 6c 6c 20 69 74 20 | output |call it |
|00005b20| 77 6f 6e 64 65 72 66 75 | 6c 2e 20 20 49 74 20 69 |wonderfu|l. It i|
|00005b30| 73 20 70 61 72 74 20 6f | 66 20 74 68 65 20 69 6e |s part o|f the in|
|00005b40| 74 65 6c 6c 69 67 65 6e | 74 20 73 6f 66 74 77 61 |telligen|t softwa|
|00005b50| 72 65 20 61 72 63 68 69 | 74 65 63 74 75 72 65 20 |re archi|tecture |
|00005b60| 74 68 61 74 20 73 65 70 | 61 72 61 74 65 73 20 4e |that sep|arates N|
|00005b70| 65 58 54 73 74 65 70 20 | 66 72 6f 6d 20 6d 6f 73 |eXTstep |from mos|
|00005b80| 74 20 6f 66 20 74 68 65 | 20 61 6c 74 65 72 6e 61 |t of the| alterna|
|00005b90| 74 69 76 65 20 73 6f 66 | 74 77 61 72 65 20 61 72 |tive sof|tware ar|
|00005ba0| 63 68 69 74 65 63 74 75 | 72 65 73 2e 0d fc 00 5a |chitectu|res....Z|
|00005bb0| 02 0a 00 5a 00 0e 01 b0 | 06 30 f7 0d fc 00 48 02 |...Z....|.0....H.|
|00005bc0| 0a 00 48 00 0e 01 b0 06 | 30 f7 ff 00 15 10 01 f7 |..H.....|0.......|
|00005bd0| 49 6d 6d 65 64 69 61 74 | 65 20 47 72 61 70 68 69 |Immediat|e Graphi|
|00005be0| 63 61 6c 20 46 65 65 64 | 62 61 63 6b 3a 20 4c 65 |cal Feed|back: Le|
|00005bf0| 73 73 6f 6e 73 20 66 72 | 6f 6d 20 4c 6f 67 6f ff |ssons fr|om Logo.|
|00005c00| 00 15 0a 00 f7 0d 00 fc | 64 00 58 90 00 2a a6 00 |........|d.X..*..|
|00005c10| 58 26 00 00 a7 00 56 eb | 02 10 4c 00 10 cd 00 b6 |X&....V.|..L.....|
|00005c20| 6c 00 14 e6 00 ad 0c 00 | 03 05 00 2a 4d 00 18 70 |l.......|...*M..p|
|00005c30| 00 8a 4c 00 18 a0 00 1c | 0d 00 03 0a 00 8e 6c 00 |..L.....|......l.|
|00005c40| 18 c2 01 47 0c 00 08 3b | 00 70 6c 00 1f 86 00 b4 |...G...;|.pl.....|
|00005c50| 6c 00 22 69 00 9a 0d 00 | 03 2b 00 fd 6c 00 0a ae |l."i....|.+..l...|
|00005c60| 00 c5 0d 00 03 52 00 b2 | 6c 00 03 a4 00 9a 0d 00 |.....R..|l.......|
|00005c70| 03 74 00 f9 6c 00 0d 79 | 00 e1 0c 00 05 bd 00 1c |.t..l..y|........|
|00005c80| 0d 00 05 c1 00 b4 6c 00 | 05 ec 01 27 6c 00 23 9f |......l.|...'l.#.|
|00005c90| 00 fc 6c 00 27 0c 00 e2 | 4d 00 29 f8 00 ff 6c 00 |..l.'...|M.)...l.|
|00005ca0| 31 f5 01 1d 7c 00 3e 10 | 01 6d 6c 00 2a 2c 01 5f |1...|.>.|.ml.*,._|
|00005cb0| 6c 00 2e 0a 01 89 6c 00 | 35 71 00 44 5c 00 31 c4 |l.....l.|5q.D\.1.|
|00005cc0| 00 1a 0d 00 31 d3 01 05 | 6c 00 42 44 00 c0 7c 00 |....1...|l.BD..|.|
|00005cd0| 45 67 00 ef 6c 00 47 63 | 00 d2 6c 00 36 1d 00 9a |Eg..l.Gc|..l.6...|
|00005ce0| 3c 00 38 2b 00 0e 0d 00 | 38 34 00 f6 6c 00 4d 51 |<.8+....|84..l.MQ|
|00005cf0| 00 e0 6c 00 38 56 00 0e | 7c 00 38 69 00 b7 6c 00 |..l.8V..||.8i..l.|
|00005d00| 3b 07 00 c1 00 18 04 00 | 02 00 00 38 04 00 02 06 |;.......|...8....|
|00005d10| 00 38 24 00 58 26 00 38 | 04 00 56 eb 00 2a |.8$.X&.8|..V..* |
+--------+-------------------------+-------------------------+--------+--------+